Changeset 16050 for trunk/wp-includes/post.php
- Timestamp:
- 10/28/2010 03:46:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r15973 r16050 1017 1017 * - publish_posts - Controls publishing objects of this post type. 1018 1018 * - read_private_posts - Controls whether private objects can be read. 1019 1019 1020 1020 * These four primitive capabilities are checked in core in various locations. 1021 1021 * There are also seven other primitive capabilities which are not referenced … … 2266 2266 'suppress_filters' => true 2267 2267 ); 2268 2268 2269 2269 $r = wp_parse_args( $args, $defaults ); 2270 2270 2271 2271 $results = get_posts( $r ); 2272 2272 2273 2273 // Backward compatibility. Prior to 3.1 expected posts to be returned in array 2274 2274 if ( ARRAY_A == $output ){ … … 4142 4142 */ 4143 4143 function _get_last_post_time( $timezone, $field ) { 4144 global $wpdb , $blog_id;4144 global $wpdb; 4145 4145 4146 4146 if ( !in_array( $field, array( 'date', 'modified' ) ) ) … … 4153 4153 $post_types = apply_filters( "get_lastpost{$field}_post_types", (array) $post_types ); 4154 4154 4155 $key = "lastpost{$field}: $blog_id:$timezone:" . md5( serialize( $post_types ) );4155 $key = "lastpost{$field}:" . get_current_blog_id() . ":$timezone:" . md5( serialize( $post_types ) ); 4156 4156 4157 4157 $date = wp_cache_get( $key, 'timeinfo' );
Note: See TracChangeset
for help on using the changeset viewer.