WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/30/2010 06:21:23 PM (10 years ago)
Author:
nacin
Message:

Move code out of the conditional. props duck_, fixes #14415.

File:
1 edited

Legend:

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

    r16066 r16104  
    30983098function get_page_by_path($page_path, $output = OBJECT, $post_type = 'page') {
    30993099    global $wpdb;
     3100    $null = null;
    31003101    $page_path = rawurlencode(urldecode($page_path));
    31013102    $page_path = str_replace('%2F', '/', $page_path);
     
    31113112
    31123113    if ( empty($pages) )
    3113         return null;
     3114        return $null;
    31143115
    31153116    foreach ( $pages as $page ) {
     
    31253126    }
    31263127
    3127     return null;
     3128    return $null;
    31283129}
    31293130
Note: See TracChangeset for help on using the changeset viewer.