- This topic has 1 reply, 2 voices, and was last updated 1 year, 5 months ago by Hash.
- AuthorPosts
- August 6, 2022 at 12:50 am #47354ervinjasonParticipant
common.min.js?ver=5.5.3:2 wpColorPickerL10n.defaultAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.
Is there a fix for this? my website
I tried adding this to functions, but it didn’t fix the issue.
if( is_admin() ){
add_action( ‘wp_default_scripts’, ‘wp_default_custom_scripts’ );
function wp_default_custom_scripts( $scripts ){
//$scripts->add( ‘wp-color-picker’, “/wp-admin/js/color-picker$suffix.js”, array( ‘iris’ ), false, 1 );
did_action( ‘init’ ) && $scripts->localize(
‘wp-color-picker’,
‘wpColorPickerL10n’,
array(
‘clear’ => __( ‘Clear’ ),
‘clearAriaLabel’ => __( ‘Clear color’ ),
‘defaultString’ => __( ‘Default’ ),
‘defaultAriaLabel’ => __( ‘Select default color’ ),
‘pick’ => __( ‘Select Color’ ),
‘defaultLabel’ => __( ‘Color value’ ),
)
);
}
}August 6, 2022 at 12:53 am #47355HashKeymasterThis issue has already been fixed in our update release. Please update the theme to the latest version.
If you are already using the latest version and still having the mentioned error in the console then please check by disabling all the plugin as plugin can also have outdated code.
Thanks
- AuthorPosts
- You must be logged in to reply to this topic.