Changeset 21597 for trunk/wp-admin/includes/post.php
- Timestamp:
- 08/23/2012 08:01:10 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/post.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r21300 r21597 161 161 // Autosave shouldn't save too soon after a real save 162 162 if ( 'autosave' == $post_data['action'] ) { 163 $post = &get_post( $post_ID );163 $post = get_post( $post_ID ); 164 164 $now = time(); 165 165 $then = strtotime($post->post_date_gmt . ' +0000'); … … 440 440 $post->post_parent = 0; 441 441 $post->menu_order = 0; 442 $post = new WP_Post( $post ); 442 443 } 443 444 … … 746 747 */ 747 748 function _fix_attachment_links( $post_ID ) { 748 $post = &get_post( $post_ID, ARRAY_A );749 $post = get_post( $post_ID, ARRAY_A ); 749 750 $content = $post['post_content']; 750 751 … … 1013 1014 */ 1014 1015 function get_sample_permalink($id, $title = null, $name = null) { 1015 $post = &get_post($id);1016 $post = get_post($id); 1016 1017 if ( !$post->ID ) 1017 1018 return array('', ''); … … 1079 1080 function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) { 1080 1081 global $wpdb; 1081 $post = &get_post($id);1082 $post = get_post($id); 1082 1083 1083 1084 list($permalink, $post_name) = get_sample_permalink($post->ID, $new_title, $new_slug);
Note: See TracChangeset
for help on using the changeset viewer.