Make WordPress Core


Ignore:
Timestamp:
09/10/2012 05:00:11 PM (12 years ago)
Author:
ryan
Message:

Remove unnecessary return by refs. Props wonderboymusic. fixes #21839

File:
1 edited

Legend:

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

    r21783 r21792  
    33713371 * @return array
    33723372 */
    3373 function &get_page_children($page_id, $pages) {
     3373function get_page_children($page_id, $pages) {
    33743374    $page_list = array();
    33753375    foreach ( (array) $pages as $page ) {
     
    33953395 * @return array A list arranged by hierarchy. Children immediately follow their parents.
    33963396 */
    3397 function &get_page_hierarchy( &$pages, $page_id = 0 ) {
     3397function get_page_hierarchy( &$pages, $page_id = 0 ) {
    33983398    if ( empty( $pages ) ) {
    33993399        $result = array();
     
    34633463 * @return array List of pages matching defaults or $args
    34643464 */
    3465 function &get_pages($args = '') {
     3465function get_pages($args = '') {
    34663466    global $wpdb;
    34673467
     
    49514951 * @return mixed Null if error or post object if success
    49524952 */
    4953 function &wp_get_post_revision(&$post, $output = OBJECT, $filter = 'raw') {
     4953function wp_get_post_revision(&$post, $output = OBJECT, $filter = 'raw') {
    49544954    $null = null;
    49554955    if ( !$revision = get_post( $post, OBJECT, $filter ) )
Note: See TracChangeset for help on using the changeset viewer.