Changeset 13733 for trunk/wp-includes/post.php
- Timestamp:
- 03/17/2010 04:27:25 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r13717 r13733 2931 2931 $number = (int) $number; 2932 2932 $offset = (int) $offset; 2933 2933 2934 2934 // Make sure the post type is hierarchical 2935 2935 $hierarchical_post_types = get_post_types( array( 'hierarchical' => true ) ); 2936 2936 if ( !in_array( $post_type, $hierarchical_post_types ) ) 2937 2937 return false; 2938 2938 2939 2939 // Make sure we have a valid post status 2940 2940 if ( !in_array($post_status, get_post_stati()) ) … … 3032 3032 if ( $parent >= 0 ) 3033 3033 $where .= $wpdb->prepare(' AND post_parent = %d ', $parent); 3034 3034 3035 3035 $where_post_type = $wpdb->prepare( "post_type = '%s' AND post_status = '%s'", $post_type, $post_status ); 3036 3036 … … 3179 3179 else 3180 3180 $post_category = array(); 3181 } 3181 } 3182 3182 3183 3183 // Are we updating or creating? … … 3815 3815 if ( $lastpostmodified ) 3816 3816 return apply_filters( 'get_lastpostmodified', $lastpostmodified, $timezone ); 3817 3817 3818 3818 switch ( strtolower($timezone) ) { 3819 3819 case 'gmt': … … 3827 3827 break; 3828 3828 } 3829 3829 3830 3830 $lastpostdate = get_lastpostdate($timezone); 3831 3831 if ( $lastpostdate > $lastpostmodified ) 3832 3832 $lastpostmodified = $lastpostdate; 3833 3833 3834 if ( $lastpostmodified ) 3835 wp_cache_set( "lastpostmodified:$timezone", $lastpostmodified, 'timeinfo' ); 3834 if ( $lastpostmodified ) 3835 wp_cache_set( "lastpostmodified:$timezone", $lastpostmodified, 'timeinfo' ); 3836 3836 3837 3837 return apply_filters( 'get_lastpostmodified', $lastpostmodified, $timezone );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)