Changeset 21627
- Timestamp:
- 08/27/2012 01:13:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r21597 r21627 1176 1176 $query_key = 'adjacent_post_' . md5($query); 1177 1177 $result = wp_cache_get($query_key, 'counts'); 1178 if ( false !== $result ) 1178 if ( false !== $result ) { 1179 if ( is_object( $result ) ) 1180 $result = new WP_Post( $result ); 1179 1181 return $result; 1182 } 1180 1183 1181 1184 $result = $wpdb->get_row("SELECT p.* FROM $wpdb->posts AS p $join $where $sort"); … … 1184 1187 1185 1188 wp_cache_set($query_key, $result, 'counts'); 1189 1190 if ( is_object( $result ) ) 1191 $result = new WP_Post( $result ); 1192 1186 1193 return $result; 1187 1194 }
Note: See TracChangeset
for help on using the changeset viewer.