- This topic has 1 reply, 2 voices, and was last updated 3 years, 3 months ago by
Hash.
- AuthorPosts
- August 6, 2022 at 12:50 am #47354
ervinjason
Participantcommon.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 #47355Hash
KeymasterThis 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.
