PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-beta
Jetpack – WP Security, Backup, Speed, & Growth v16.3-beta
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 +24 -1 13.6.2 → 16.3-beta View file →
@@ -12,8 +12,10 @@
12 12 use WP_Customize_Manager;
13 13
14 14 /**
15 15 * Class to customize search on the site.
16 + *
17 + * @phan-constructor-used-for-side-effects
16 18 */
17 19 class Customizer {
18 20 /**
19 21 * Search Plan class.
@@ -42,9 +44,10 @@
42 44
43 45 $wp_customize->add_section(
44 46 $section_id,
45 47 array(
46 - 'title' => esc_html__( 'Jetpack Search', 'jetpack-search-pkg' ),
48 + /** "Search" is a product name, do not translate. */
49 + 'title' => 'Jetpack Search',
47 50 'capability' => 'edit_theme_options',
48 51 'priority' => 200,
49 52 )
50 53 );
@@ -295,8 +298,28 @@
295 298 array(
296 299 'type' => 'checkbox',
297 300 'section' => $section_id,
298 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' ),
299 322 )
300 323 );
301 324
302 325 $id = $setting_prefix . 'show_powered_by';