WordPress.org

Support

Support » Requests and Feedback » Wp 3.5.1 problem in wp-includes/functions.php: function add_query_arg()

Wp 3.5.1 problem in wp-includes/functions.php: function add_query_arg()

  • functions.php of wp-includes in the new version 3.5.1 has a little problem with a function called “add_query_arg()”, it starts at line 638,and ends at line 705 .

    the problem is that , during line 658 and 661 ,as below shows

    if ( 0 === stripos(‘http://’, $uri) ) {
    $protocol = ‘http://’;
    $uri = substr( $uri, 7 );
    } elseif ( 0 === stripos(‘https://’, $uri) ) {
    $protocol = ‘https://’;
    $uri = substr( $uri, 8 );
    } else {
    $protocol = ”;
    }

    the stripos() function get an error , it’d be written like ‘stripos($url, “http://”)’ or ‘stripos($url, “https://”)’.

    so hope the author can fix it in time .

    p.s my english is so poor , im sorry if u cannot know what im saying.

  • The topic ‘Wp 3.5.1 problem in wp-includes/functions.php: function add_query_arg()’ is closed to new replies.