Changeset 16438 for trunk/wp-includes/post.php
- Timestamp:
- 11/17/2010 06:47:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r16431 r16438 2274 2274 $args = array( 'numberposts' => absint( $args ) ); 2275 2275 } 2276 2276 2277 2277 // Set default arguments 2278 2278 $defaults = array( … … 3138 3138 $curpage = $page; 3139 3139 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 ) 3143 3143 $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 ) ); 3144 3144 $path = '/' . $curpage->post_name . $path; … … 5242 5242 * @since 3.1.0 5243 5243 * 5244 * @return array The array of translations 5244 * @return array The array of translations 5245 5245 */ 5246 5246 function get_post_format_strings() { … … 5261 5261 /** 5262 5262 * Returns a pretty, translated version of a post format slug 5263 * 5263 * 5264 5264 * @since 3.1.0 5265 5265 *
Note: See TracChangeset
for help on using the changeset viewer.