WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. defons
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic