WordPress.org

Make WordPress Core

Changeset 12517


Ignore:
Timestamp:
12/23/2009 04:03:04 PM (11 years ago)
Author:
westi
Message:

Notice fix. Only return variable references by reference.

File:
1 edited

Legend:

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

    r12515 r12517  
    24012401function &get_page_hierarchy( &$pages, $page_id = 0 ) {
    24022402
    2403     if ( empty( $pages ) )
    2404         return null;
     2403    if ( empty( $pages ) ) {
     2404        $result = null;
     2405        return $result;
     2406    }
    24052407
    24062408    $children = array();
Note: See TracChangeset for help on using the changeset viewer.