WordPress.org

Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #34591


Ignore:
Timestamp:
11/06/2015 12:06:32 AM (5 years ago)
Author:
johnbillion
Comment:

Thanks for the report, @jan.mazanek.

  • Can you explain a little more about why you think this double slash is appearing?
  • What's the value of the home option in the wp_options table in your database?
  • Does the bug remain if you disable all the plugins on your site and switch to one of the default themes?
  • Is there anything unusual about the configuration of your site?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34591

    • Property Keywords reporter-feedback added
  • Ticket #34591 – Description

    initial v2  
    1 Current code in do_item() of class.wp-script.php on line 172:
     1Current code in `do_item()` of class.wp-script.php on line 172:
    22
    33{{{
     
    55}}}
    66
    7 may produce duplicate slashes "//", resulting in problems.
     7may produce duplicate slashes `"//"`, resulting in problems.
    88
    99This might be fixed with code:
     
    1313
    1414Currently:
    15 * WP_Scripts contains: "public $base_url; // Full URL with trailing slash" and
    16 * script-loader.php contains calls $scripts->add() with initial "/" in relative paths
     15* WP_Scripts contains: `"public $base_url; // Full URL with trailing slash"` and
     16* script-loader.php contains calls `$scripts->add()` with initial `"/"` in relative paths
    1717
    18 Together this produces doubled slashes "//". For example:
     18Together this produces doubled slashes `"//"`. For example:
    1919http://www.ocelovehaly.cz/ll//wp-includes/js/jquery/jquery.js?ver=1.11.3
    2020