diff --git a/projects/packages/blaze/changelog/fix-show-quicklinks-after-quickedit b/projects/packages/blaze/changelog/fix-show-quicklinks-after-quickedit new file mode 100644 index 0000000000000..1be619e65dffa --- /dev/null +++ b/projects/packages/blaze/changelog/fix-show-quicklinks-after-quickedit @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Blaze: ensure post list quick link is added after quick edit diff --git a/projects/packages/blaze/src/class-blaze.php b/projects/packages/blaze/src/class-blaze.php index d28214025387e..dff0ef06aeecb 100644 --- a/projects/packages/blaze/src/class-blaze.php +++ b/projects/packages/blaze/src/class-blaze.php @@ -45,6 +45,10 @@ class Blaze { public static function init() { // On the edit screen, add a row action to promote the post. add_action( 'load-edit.php', array( __CLASS__, 'add_post_links_actions' ) ); + // After the quick-edit screen is processed, ensure the blaze row action is still present + if ( 'admin-ajax.php' === $GLOBALS['pagenow'] && ! empty( $_POST['screen'] ) && 'edit-post' === $_POST['screen'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Nonce verification is not needed here, we're not saving anything. + self::add_post_links_actions(); + } // In the post editor, add a post-publish panel to allow promoting the post. add_action( 'enqueue_block_editor_assets', array( __CLASS__, 'enqueue_block_editor_assets' ) ); // Add a Blaze Menu. diff --git a/projects/plugins/jetpack/changelog/fix-show-quicklinks-after-quickedit b/projects/plugins/jetpack/changelog/fix-show-quicklinks-after-quickedit new file mode 100644 index 0000000000000..ae09f26d7dccd --- /dev/null +++ b/projects/plugins/jetpack/changelog/fix-show-quicklinks-after-quickedit @@ -0,0 +1,4 @@ +Significance: patch +Type: other + +Post list: Ensure copy quick link is added after quick edit diff --git a/projects/plugins/jetpack/modules/copy-post.php b/projects/plugins/jetpack/modules/copy-post.php index 762fbcba41bd2..85512f024a347 100644 --- a/projects/plugins/jetpack/modules/copy-post.php +++ b/projects/plugins/jetpack/modules/copy-post.php @@ -29,7 +29,7 @@ class Jetpack_Copy_Post { * @return void */ public function __construct() { - if ( 'edit.php' === $GLOBALS['pagenow'] ) { + if ( 'edit.php' === $GLOBALS['pagenow'] || ( 'admin-ajax.php' === $GLOBALS['pagenow'] && ! empty( $_POST['screen'] ) && 'edit-post' === $_POST['screen'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing -- update_post_data() handles access check. add_action( 'admin_head', array( $this, 'print_inline_styles' ) ); add_filter( 'post_row_actions', array( $this, 'add_row_action' ), 10, 2 ); add_filter( 'page_row_actions', array( $this, 'add_row_action' ), 10, 2 );