Changeset 8600 for trunk/wp-admin/includes/post.php
- Timestamp:
- 08/09/2008 05:36:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r8589 r8600 60 60 $previous_status = get_post_field('post_status', $_POST['ID']); 61 61 62 // Posts 'submitted for approval' present are submitted to $_POST the same as if they were being published. 62 // Posts 'submitted for approval' present are submitted to $_POST the same as if they were being published. 63 63 // Change status from 'publish' to 'pending' if user lacks permissions to publish or to resave published posts. 64 64 if ( 'page' == $_POST['post_type'] ) { … … 357 357 wp_cache_delete($post_ID, 'post_meta'); 358 358 359 $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->postmeta 359 $wpdb->query( $wpdb->prepare("INSERT INTO $wpdb->postmeta 360 360 (post_id,meta_key,meta_value ) VALUES (%s, %s, %s)", 361 361 $post_ID, $metakey, $metavalue) ); … … 421 421 $meta_value = maybe_serialize( stripslashes( $meta_value )); 422 422 $meta_id = (int) $meta_id; 423 423 424 424 $data = compact( 'meta_key', 'meta_value' ); 425 425 $where = compact( 'meta_id' ); … … 586 586 $post->post_status = 'publish'; 587 587 $post->post_date = date('Y-m-d H:i:s'); 588 $post->post_name = sanitize_title($post->post_name? $post->post_name : $post->post_title, $post->ID); 588 $post->post_name = sanitize_title($post->post_name? $post->post_name : $post->post_title, $post->ID); 589 589 } 590 590
Note: See TracChangeset
for help on using the changeset viewer.