BLACK FRIDAY & CYBER MONDAY SALE! Get 40% off. Hurry Up !!! Limited Time Peroid !!! 🔥🔥 Coupon Code: BF2022

Home Forums Total MANY JS console errors in customizer

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #47354
    ervinjason
    Participant

    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’ ),
    )
    );
    }
    }

    #47355
    Hash
    Keymaster

    This 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

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.