WordPress.org

Make WordPress Core

Ticket #11661: 11661-wp.2.9.diff

File 11661-wp.2.9.diff, 440 bytes (added by Denis-de-Bernardy, 4 years ago)
  • wp-includes/post.php

     
    23912391 */ 
    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(); 
    23982400        foreach ( (array) $pages as $p ) {