Skip to content

Commit

Permalink
Enable the quicklink from wpcomsh
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanUngureanu committed Dec 18, 2024
1 parent c839cac commit 9871505
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion projects/plugins/jetpack/modules/blaze.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* @return bool
*/
function jetpack_blaze_post_row_actions_disable( $are_quick_links_enabled, $post ) {
if ( 'product' !== $post->post_type && ! ( new Host() )->is_wpcom_platform() ) {
if ( 'product' !== $post->post_type ) {
return false;
}

Expand Down
10 changes: 10 additions & 0 deletions projects/plugins/wpcomsh/feature-plugins/blaze.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,13 @@ function ( $option ) {
return $option;
}
);

/**
* On Atomic sites the Promote with Blaze option is enabled.
*/
add_action(
'jetpack_modules_loaded',
function () {
remove_filter( 'jetpack_blaze_post_row_actions_enable', 'jetpack_blaze_post_row_actions_disable' );

Check failure on line 109 in projects/plugins/wpcomsh/feature-plugins/blaze.php

View workflow job for this annotation

GitHub Actions / Static analysis

UndefError PhanUndeclaredFunctionInCallable Call to undeclared function jetpack_blaze_post_row_actions_disable in callable
}
);

0 comments on commit 9871505

Please sign in to comment.