PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.1
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.1
16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 All 504 releases
← All changes | 3rd-party/debug-bar/class-jetpack-search-debug-bar.php +8 -3 12.2.3 → 16.3-a.1 View file →
@@ -6,8 +6,12 @@
6 6 */
7 7
8 8 use Automattic\Jetpack\Search as Jetpack_Search;
9 9
10 +if ( ! defined( 'ABSPATH' ) ) {
11 + exit( 0 );
12 +}
13 +
10 14 /**
11 15 * Singleton class instantiated by Jetpack_Searc_Debug_Bar::instance() that handles
12 16 * rendering the Jetpack Search debug bar menu item and panel.
13 17 */
@@ -29,9 +33,10 @@
29 33 /**
30 34 * Constructor
31 35 */
32 36 public function __construct() {
33 - $this->title( esc_html__( 'Jetpack Search', 'jetpack' ) );
37 + /** "Search" is a product name, do not translate. */
38 + $this->title( 'Jetpack Search' );
34 39 add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
35 40 add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
36 41 add_action( 'login_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
37 42 add_action( 'enqueue_embed_scripts', array( $this, 'enqueue_scripts' ) );
@@ -176,11 +181,11 @@
176 181 // (double-encode them) so that they are displayed correctly in the debug
177 182 // bar.
178 183 // Use _wp_specialchars() "manually" to ensure entities are encoded correctly.
179 184 echo _wp_specialchars( // phpcs:ignore WordPress.Security.EscapeOutput
180 - wp_json_encode( $value ),
185 + wp_json_encode( $value, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE ),
181 186 ENT_NOQUOTES, // Don't need to encode quotes (output is for a text node).
182 - 'UTF-8', // wp_json_encode() outputs UTF-8 (really just ASCII), not the blog's charset.
187 + 'UTF-8', // wp_json_encode() outputs UTF-8, not the blog's charset.
183 188 true // Do "double-encode" existing HTML entities.
184 189 );
185 190 ?>
186 191 </pre>