Viewing 6 replies - 1 through 6 (of 6 total)
  • OK….

    I can do this but does it make that much of a difference to your dashboard?

    Thread Starter bdvllrd

    (@bdvllrd)

    No differences in my dashobard.

    This avoid to load the jquery-ui css file twice.

    My suggestion is correct only for people who run the last wp release.
    For older wp release the jquery-ui release is different.

    May be this script to get the correct jquery-ui release could be used.

    public function get_wp_ui_version() {

    global $wp_scripts;

    if( !$wp_scripts instanceof WP_Scripts )
    $wp_scripts = new WP_Scripts();

    $jquery_ui_core = $wp_scripts->query( ‘jquery-ui-core’ );

    if( !$jquery_ui_core instanceof _WP_Dependency )
    return $this->ui_version;

    if( !isset( $jquery_ui_core->ver ) )
    return $this->ui_version;

    return $jquery_ui_core->ver;
    }

    Have you tried adding it to the plugin to see if it works?

    Thread Starter bdvllrd

    (@bdvllrd)

    No. This should be tested.

    I’m really busy at the moment and don’t have the time to do this – it’s only me on my own and the plugins don’t pay the bills.

    I can add it to the list of things to do but it may be a few weeks until I get round to it.

    My suggestion was for you to add the code to the plugin and see if it works.

    Or for now you could just delete the line in settings.php that calls the jquery-ui-core css.

    Thread Starter bdvllrd

    (@bdvllrd)

    I understand. No problem.

    For the moment I modify the line. But I need to do this at each upgrade.

    I will try later my suggestion.
    Anyway, thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘datepicker-style’ is closed to new replies.