diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cef354..2079a79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 This is an alpha version! The changes listed here are not final. ### Added +- Added the comments page to the list of untangled pages under the experiment - CSS Tidy: add css rule mask to allowlist - Remove duplicate views: Show notices - WordPress.com Features: add Holiday Snow functionality. diff --git a/src/features/wpcom-admin-interface/screens/edit-comments-php.webp b/src/features/wpcom-admin-interface/screens/edit-comments-php.webp new file mode 100644 index 0000000..e552a79 Binary files /dev/null and b/src/features/wpcom-admin-interface/screens/edit-comments-php.webp differ diff --git a/src/features/wpcom-admin-interface/wpcom-admin-interface.php b/src/features/wpcom-admin-interface/wpcom-admin-interface.php index fb7af7b..e6a7cae 100644 --- a/src/features/wpcom-admin-interface/wpcom-admin-interface.php +++ b/src/features/wpcom-admin-interface/wpcom-admin-interface.php @@ -122,6 +122,7 @@ function ( $location ) { 'tools.php?page=advertising', 'edit.php?post_type=jetpack-portfolio', 'edit.php?post_type=jetpack-testimonial', + 'edit-comments.php', 'edit-tags.php?taxonomy=category', 'edit-tags.php?taxonomy=post_tag', ); @@ -477,10 +478,12 @@ function wpcom_show_removed_calypso_screen_notice() { wp_set_script_translations( $handle, 'jetpack-mu-wpcom', Jetpack_Mu_Wpcom::PKG_DIR . 'languages' ); global $title; - $config = wp_json_encode( + $clean_title = preg_replace( '/\(\d+\)/', '', $title ); + $clean_title = trim( $clean_title ); + $config = wp_json_encode( array( 'imageUrl' => plugins_url( 'screens/' . sanitize_title( $current_screen ) . '.webp', __FILE__ ), - 'title' => $title, + 'title' => $clean_title, 'screen' => $current_screen, 'ajaxUrl' => admin_url( 'admin-ajax.php' ), 'dismissNonce' => wp_create_nonce( 'wpcom_dismiss_removed_calypso_screen_notice' ),