• hello there again ??

    while running taskfreak on a german language wordpress site i found out that it is not loading the proper language file for datepicker, because the URL in the wp_register_script function point to file not found

    wp_register_script('jquery-ui-datepicker-l10n',
    'https://raw.github.com/jquery/jquery-ui/master/ui/i18n/jquery.ui.datepicker-'.$wp_lang.'.js',
    array('jquery-ui-datepicker'));

    changing to the proper URL solves this problem:

    wp_register_script('jquery-ui-datepicker-l10n',
    '//raw.githubusercontent.com/jquery/jquery-ui/master/ui/i18n/datepicker-'.$wp_lang.'.js',
    array('jquery-ui-datepicker'));

    perhaps this migh help someone having the same problem!

    thanks again for providing this free plugin!
    greetings
    becki

    https://www.ads-software.com/plugins/taskfreak/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘wrong URL for datepicker i18n’ is closed to new replies.