Skip to content

Commit

Permalink
We now use the clean title
Browse files Browse the repository at this point in the history
  • Loading branch information
rcrdortiz committed Dec 18, 2024
1 parent 9ff223d commit 5872b7c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,10 @@ function wpcom_show_removed_calypso_screen_notice() {
global $title;
$clean_title = preg_replace( '/\(\d+\)/', '', $title );
$clean_title = trim( $clean_title );
$config = wp_json_encode(
$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 5872b7c

Please sign in to comment.