WordPress.org

Make WordPress Core

Changeset 12572


Ignore:
Timestamp:
12/29/09 21:11:59 (4 years ago)
Author:
ryan
Message:

Return empty array instead of null. Props Denis-de-Bernardy. fixes #11661 for 2.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.9/wp-includes/post.php

    r12415 r12572  
    23922392function &get_page_hierarchy( &$pages, $page_id = 0 ) { 
    23932393 
    2394     if ( empty( $pages ) ) 
    2395         return null; 
     2394    if ( empty( $pages ) ) { 
     2395        $return = array(); 
     2396        return $return; 
     2397    } 
    23962398 
    23972399    $children = array(); 
Note: See TracChangeset for help on using the changeset viewer.