• URL formatting for the datepicker CSS and Javascript files have double slashes when parsed. In mailchimp.php, beginning at line 101:

    if (get_option('mc_use_datepicker') == 'on' && !is_admin()) {
        // Datepicker theme
        wp_enqueue_style('flick', MCSF_URL.'/css/flick/flick.css');
        // Datepicker JS
        wp_enqueue_script('datepicker', MCSF_URL.'/js/datepicker.js', array('jquery','jquery-ui-core'));
    }

    Output parses as follows:

    <link rel="stylesheet" id="flick-css" href="http://mysite.com/wp-content/plugins/mailchimp//css/flick/flick.css?ver=3.5.1" type="text/css" media="all">
    ...
    <script type="text/javascript" src="http://mysite.com/wp-content/plugins/mailchimp//js/datepicker.js?ver=3.5.1"></script>

    The wp_enqueue calls probably should be:

    if (get_option('mc_use_datepicker') == 'on' && !is_admin()) {
        // Datepicker theme
        wp_enqueue_style('flick', MCSF_URL.'css/flick/flick.css');
        // Datepicker JS
        wp_enqueue_script('datepicker', MCSF_URL.'js/datepicker.js', array('jquery','jquery-ui-core'));
    }

    http://wordpress.org/extend/plugins/mailchimp/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Double slashes in datepicker URLs’ is closed to new replies.