Browse Source

Fix CS.

pull/27/head
Ned Zimmerman 7 years ago
parent
commit
0ff5995e55
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 9
      app/admin.php

9
app/admin.php

@ -139,7 +139,8 @@ add_action('customize_preview_init', function () {
add_action('customize_controls_enqueue_scripts', function () { add_action('customize_controls_enqueue_scripts', function () {
$handle = 'wcag-validate-customizer-color-contrast'; $handle = 'wcag-validate-customizer-color-contrast';
$src = get_theme_file_uri() . '/lib/customizer-validate-wcag-color-contrast/customizer-validate-wcag-color-contrast.js'; $src = get_theme_file_uri() .
'/lib/customizer-validate-wcag-color-contrast/customizer-validate-wcag-color-contrast.js';
$deps = [ 'customize-controls' ]; $deps = [ 'customize-controls' ];
wp_enqueue_script($handle, $src, $deps); wp_enqueue_script($handle, $src, $deps);
@ -149,5 +150,9 @@ add_action('customize_controls_enqueue_scripts', function () {
'pb_network_color_accent_fg' => [ 'pb_network_color_accent' ], 'pb_network_color_accent_fg' => [ 'pb_network_color_accent' ],
], ],
]; ];
wp_scripts()->add_data($handle, 'data', sprintf('var _validateWCAGColorContrastExports = %s;', wp_json_encode($exports))); wp_scripts()->add_data(
$handle,
'data',
sprintf('var _validateWCAGColorContrastExports = %s;', wp_json_encode($exports))
);
}); });

Loading…
Cancel
Save