- This topic has 6 replies, 2 voices, and was last updated 3 years, 11 months ago by Hash.
- AuthorPosts
- December 23, 2020 at 11:00 pm #28574stevenooneParticipant
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?
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’ ),
)
);
}
}December 23, 2020 at 11:24 pm #28575HashKeymasterCan you please show me your website?
December 24, 2020 at 12:49 am #28582stevenooneParticipantDecember 24, 2020 at 12:51 am #28583stevenooneParticipantThis reply has been marked as private.December 24, 2020 at 1:18 am #28585stevenooneParticipantDecember 24, 2020 at 3:43 pm #28606HashKeymasterHi,
I just checked your website and found that you are using an older version of the theme. This issue has been fixed in our latest updates. So please update the theme to latest version. Please check this article of how to update the theme https://hashthemes.com/articles/adding-license-key-and-updating-a-premium-theme/
Thanks
December 24, 2020 at 3:44 pm #28607HashKeymasterPlease do let us know if the problem is still not fixed after the update. We will see and fix it in that case. The Plugin can also cause such issue.
- AuthorPosts
- You must be logged in to reply to this topic.