Changeset 5260

Show
Ignore:
Timestamp:
04/12/07 21:59:31 (2 years ago)
Author:
rob1n
Message:

Replace some stristr's with stripos'.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/link-template.php

    r5150 r5260  
    443443 
    444444    // if we already have a QUERY style page string 
    445     if ( stristr( $qstr, $page_querystring ) ) { 
     445    if ( stripos( $qstr, $page_querystring ) !== false ) { 
    446446        $replacement = "$page_querystring=$pagenum"; 
    447447        $qstr = preg_replace("/".$page_querystring."[^\d]+\d+/", $replacement, $qstr); 
     
    456456        // we need to know the way queries are being written 
    457457        // if there's a querystring_start (a "?" usually), it's definitely not mod_rewritten 
    458         if ( stristr( $qstr, '?' ) ) { 
     458        if ( stripos( $qstr, '?' ) !== false ) { 
    459459            // so append the query string (using &, since we already have ?) 
    460460            $qstr .=    '&' . $page_querystring . '=' . $pagenum;