WordPress.org

Make WordPress Core

Changeset 5855


Ignore:
Timestamp:
08/08/2007 04:24:44 AM (12 years ago)
Author:
markjaquith
Message:

Avoid running get_posts filter twice. Props DD32. fixes #4712

File:
1 edited

Legend:

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

    r5853 r5855  
    11841184
    11851185    $pages = $wpdb->get_results($query);
    1186     $pages = apply_filters('get_pages', $pages, $r);
    11871186
    11881187    if ( empty($pages) )
     
    11971196    $cache[ $key ] = $pages;
    11981197    wp_cache_set( 'get_pages', $cache, 'page' );
     1198
     1199    $pages = apply_filters('get_pages', $pages, $r);
    11991200
    12001201    return $pages;
Note: See TracChangeset for help on using the changeset viewer.