PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3
Jetpack – WP Security, Backup, Speed, & Growth v16.3
16.3 16.3-beta 16.3-a.5 16.3-a.7 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 All 508 releases
← All changes | jetpack_vendor/automattic/jetpack-search/src/customizer/class-customizer.php +25 -1 13.2.4 → 16.3 View file →
@@ -8,11 +8,14 @@
8 8 namespace Automattic\Jetpack\Search;
9 9
10 10 use Automattic\Jetpack\Assets;
11 11 use WP_Customize_Color_Control;
12 +use WP_Customize_Manager;
12 13
13 14 /**
14 15 * Class to customize search on the site.
16 + *
17 + * @phan-constructor-used-for-side-effects
15 18 */
16 19 class Customizer {
17 20 /**
18 21 * Search Plan class.
@@ -41,9 +44,10 @@
41 44
42 45 $wp_customize->add_section(
43 46 $section_id,
44 47 array(
45 - 'title' => esc_html__( 'Jetpack Search', 'jetpack-search-pkg' ),
48 + /** "Search" is a product name, do not translate. */
49 + 'title' => 'Jetpack Search',
46 50 'capability' => 'edit_theme_options',
47 51 'priority' => 200,
48 52 )
49 53 );
@@ -294,8 +298,28 @@
294 298 array(
295 299 'type' => 'checkbox',
296 300 'section' => $section_id,
297 301 'label' => __( 'Show post date', 'jetpack-search-pkg' ),
302 + )
303 + );
304 +
305 + $id = $setting_prefix . 'show_product_price';
306 + $wp_customize->add_setting(
307 + $id,
308 + array(
309 + 'default' => '1',
310 + 'sanitize_callback' => array( 'Automattic\Jetpack\Search\Helper', 'sanitize_checkbox_value' ),
311 + 'sanitize_js_callback' => array( 'Automattic\Jetpack\Search\Helper', 'sanitize_checkbox_value_for_js' ),
312 + 'transport' => 'postMessage',
313 + 'type' => 'option',
314 + )
315 + );
316 + $wp_customize->add_control(
317 + $id,
318 + array(
319 + 'type' => 'checkbox',
320 + 'section' => $section_id,
321 + 'label' => __( 'Show price', 'jetpack-search-pkg' ),
298 322 )
299 323 );
300 324
301 325 $id = $setting_prefix . 'show_powered_by';