WordPress.org

Make WordPress Core

Changeset 7605


Ignore:
Timestamp:
04/06/08 23:23:05 (6 years ago)
Author:
ryan
Message:

Explicit ID check so we don't fall through for empties. Props natecook. fixes #6539 for 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r7586 r7605  
    921921            } 
    922922 
    923             if  ( ('page' != get_option('show_on_front') ) || ( $reqpage != get_option('page_for_posts') ) ) { 
     923            if  ( ('page' != get_option('show_on_front') ) || ( $reqpage !== get_option('page_for_posts') ) ) { 
    924924                $q['pagename'] = str_replace('%2F', '/', urlencode(urldecode($q['pagename']))); 
    925925                $page_paths = '/' . trim($q['pagename'], '/'); 
Note: See TracChangeset for help on using the changeset viewer.