Make WordPress Core


Ignore:
Timestamp:
11/17/2010 06:47:34 PM (16 years ago)
Author:
ryan
Message:

Pinking shears

File:
1 edited

Legend:

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

    r16431 r16438  
    22742274                $args = array( 'numberposts' => absint( $args ) );
    22752275        }
    2276        
     2276
    22772277        // Set default arguments
    22782278        $defaults = array(
    … …  
    31383138                $curpage = $page;
    31393139                while ( $curpage->post_parent != 0 ) {
    3140                         $post_parent = $curpage->post_parent; 
    3141                         $curpage = wp_cache_get( $post_parent, 'posts' ); 
    3142                         if ( false === $curpage ) 
     3140                        $post_parent = $curpage->post_parent;
     3141                        $curpage = wp_cache_get( $post_parent, 'posts' );
     3142                        if ( false === $curpage )
    31433143                                $curpage = $wpdb->get_row( $wpdb->prepare( "SELECT ID, post_name, post_parent FROM $wpdb->posts WHERE ID = %d and post_type = %s", $post_parent, $post_type ) );
    31443144                        $path = '/' . $curpage->post_name . $path;
    … …  
    52425242 * @since 3.1.0
    52435243 *
    5244  * @return array The array of translations 
     5244 * @return array The array of translations
    52455245 */
    52465246function get_post_format_strings() {
    … …  
    52615261/**
    52625262 * Returns a pretty, translated version of a post format slug
    5263  * 
     5263 *
    52645264 * @since 3.1.0
    52655265 *
Note: See TracChangeset for help on using the changeset viewer.