Fix wp_localize_script argument.

This commit is contained in:
Jeff Ong 2021-02-25 10:53:10 -05:00
parent 842fca9501
commit 51dddaa4da

View file

@ -308,7 +308,7 @@ class Seedlet_Custom_Colors {
wp_script_add_data( $handle, 'data', sprintf( 'var seedletValidateWCAGColorContrastExports = %s;', wp_json_encode( $exports ) ) );
// Custom color contrast validation text
wp_localize_script( $handle, 'seedletValidateContrastText', esc_html__( 'This color combination may be hard for people to read. Try using a brighter background color and/or a darker foreground color.', 'seedlet' ) );
wp_localize_script( $handle, 'seedletValidateContrastText', array( esc_html__( 'This color combination may be hard for people to read. Try using a brighter background color and/or a darker foreground color.', 'seedlet' ) ) );
}
/**