Changeset 25669 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 10/02/2013 09:09:52 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r25505 r25669 53 53 $post_data['to_ping'] = $post_data['trackback_url']; 54 54 55 $post_data['user_ID'] = $GLOBALS['user_ID'];55 $post_data['user_ID'] = get_current_user_id(); 56 56 57 57 if (!empty ( $post_data['post_author_override'] ) ) { … … 267 267 add_meta( $post_ID ); 268 268 269 update_post_meta( $post_ID, '_edit_last', $GLOBALS['current_user']->ID);269 update_post_meta( $post_ID, '_edit_last', get_current_user_id() ); 270 270 271 271 wp_update_post( $post_data ); … … 539 539 */ 540 540 function wp_write_post() { 541 global $user_ID;542 543 541 if ( isset($_POST['post_type']) ) 544 542 $ptype = get_post_type_object($_POST['post_type']);
Note: See TracChangeset
for help on using the changeset viewer.