Make WordPress Core

Changeset 21567


Ignore:
Timestamp:
08/20/2012 11:43:04 PM (12 years ago)
Author:
nacin
Message:

Return a variable reference from get_pages(). see [21559], see #21309, fixes #20756.

File:
1 edited

Legend:

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

    r21559 r21567  
    35213521            // Convert to WP_Post instances
    35223522            $pages = array_map( 'get_post', $cache[ $key ] );
    3523 
    3524             return apply_filters( 'get_pages', $pages, $r );
     3523            $pages = apply_filters( 'get_pages', $pages, $r );
     3524            return $pages;
    35253525        }
    35263526    }
Note: See TracChangeset for help on using the changeset viewer.