Skip to content

Commit

Permalink
Duplicated views: add untangled comments to include list (#40649)
Browse files Browse the repository at this point in the history
* Added the comments page to the list of untangled pages under the experiment

* changelog

* Added notice to the comments section

* We now use the clean title

* Improved image

* Edited and improved image
  • Loading branch information
rcrdortiz authored Dec 19, 2024
1 parent 440a234 commit 129f0de
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: added

Added the comments page to the list of untangled pages under the experiment
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
);
Expand Down Expand Up @@ -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' ),
Expand Down

0 comments on commit 129f0de

Please sign in to comment.