Changeset 8600 for trunk/wp-includes/post.php
- Timestamp:
- 08/09/2008 05:36:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r8572 r8600 922 922 923 923 array_splice($stickies, $offset, 1); 924 924 925 925 update_option('sticky_posts', $stickies); 926 926 } … … 1446 1446 return new WP_Error('db_insert_error', __('Could not insert post into the database'), $wpdb->last_error); 1447 1447 else 1448 return 0; 1448 return 0; 1449 1449 } 1450 1450 $post_ID = (int) $wpdb->insert_id; … … 2149 2149 if ( ! empty( $meta_key ) || ! empty( $meta_value ) ) { 2150 2150 $join = " LEFT JOIN $wpdb->postmeta ON ( $wpdb->posts.ID = $wpdb->postmeta.post_id )"; 2151 2152 // meta_key and met_value might be slashed 2151 2152 // meta_key and met_value might be slashed 2153 2153 $meta_key = stripslashes($meta_key); 2154 2154 $meta_value = stripslashes($meta_value); … … 2343 2343 if ( $file ) 2344 2344 update_attached_file( $post_ID, $file ); 2345 2345 2346 2346 clean_post_cache($post_ID); 2347 2347 … … 2535 2535 if ( !$url = wp_get_attachment_url( $post->ID ) ) 2536 2536 return false; 2537 2537 2538 2538 $sized = image_downsize( $post_id, 'thumbnail' ); 2539 2539 if ( $sized )
Note: See TracChangeset
for help on using the changeset viewer.