Changeset 6354 for trunk/wp-admin/includes/post.php
- Timestamp:
- 12/05/2007 12:29:05 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r6333 r6354 3 3 // Update an existing post with values provided in $_POST. 4 4 function edit_post() { 5 global $user_ID;6 5 7 6 $post_ID = (int) $_POST['post_ID']; … … 351 350 wp_cache_delete($post_ID, 'post_meta'); 352 351 353 $ result = $wpdb->query( "354 355 356 357 352 $wpdb->query( " 353 INSERT INTO $wpdb->postmeta 354 (post_id,meta_key,meta_value ) 355 VALUES ('$post_ID','$metakey','$metavalue' ) 356 " ); 358 357 return $wpdb->insert_id; 359 358 } … … 429 428 // Replace hrefs of attachment anchors with up-to-date permalinks. 430 429 function _fix_attachment_links( $post_ID ) { 431 global $wp_rewrite;432 430 433 431 $post = & get_post( $post_ID, ARRAY_A );
Note: See TracChangeset
for help on using the changeset viewer.