diff --git a/includes/class-amp-theme-support.php b/includes/class-amp-theme-support.php index b3584353342..a453809fbe0 100644 --- a/includes/class-amp-theme-support.php +++ b/includes/class-amp-theme-support.php @@ -2464,12 +2464,13 @@ public static function enqueue_paired_browsing_client() { * non-AMP page and its AMP version to review any discrepancies. */ public static function serve_paired_browsing_experience() { + // phpcs:ignore WordPress.Security.NonceVerification.Recommended if ( ! isset( $_GET[ self::PAIRED_BROWSING_QUERY_VAR ] ) ) { return; } if ( ! is_admin_bar_showing() ) { - wp_die( esc_html__( 'The admin bar must be showing to use paired browsing mode.' ) ); + wp_die( esc_html__( 'The admin bar must be showing to use paired browsing mode.', 'amp' ) ); } $url = remove_query_arg( self::PAIRED_BROWSING_QUERY_VAR ); @@ -2480,7 +2481,7 @@ public static function serve_paired_browsing_experience() { - <?php esc_html_e( 'Loading...', 'amp-to-amp' ); ?> + <?php esc_html_e( 'Loading...', 'amp' ); ?>