Changeset 47122 for trunk/src/wp-admin/post.php
- Timestamp:
- 01/29/2020 12:43:23 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/post.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/post.php
r46603 r47122 72 72 switch ( $action ) { 73 73 case 'post-quickdraft-save': 74 // Check nonce and capabilities 74 // Check nonce and capabilities. 75 75 $nonce = $_REQUEST['_wpnonce']; 76 76 $error_msg = false; 77 77 78 // For output of the quickdraft dashboard widget78 // For output of the Quick Draft dashboard widget. 79 79 require_once ABSPATH . 'wp-admin/includes/dashboard.php'; 80 80 … … 203 203 check_admin_referer( 'update-post_' . $post_id ); 204 204 205 // Don't let these be changed 205 // Don't let these be changed. 206 206 unset( $_POST['guid'] ); 207 207 $_POST['post_type'] = 'attachment'; 208 208 209 // Update the thumbnail filename 209 // Update the thumbnail filename. 210 210 $newmeta = wp_get_attachment_metadata( $post_id, true ); 211 211 $newmeta['thumb'] = wp_basename( $_POST['thumb'] ); … … 219 219 $post_id = edit_post(); 220 220 221 // Session cookie flag that the post was saved 221 // Session cookie flag that the post was saved. 222 222 if ( isset( $_COOKIE['wp-saving-post'] ) && $_COOKIE['wp-saving-post'] === $post_id . '-check' ) { 223 223 setcookie( 'wp-saving-post', $post_id . '-saved', time() + DAY_IN_SECONDS, ADMIN_COOKIE_PATH, COOKIE_DOMAIN, is_ssl() ); 224 224 } 225 225 226 redirect_post( $post_id ); // Send user on their way while we keep working 226 redirect_post( $post_id ); // Send user on their way while we keep working. 227 227 228 228 exit(); … … 350 350 wp_redirect( admin_url( 'edit.php' ) ); 351 351 exit(); 352 } // end switch352 } // End switch. 353 353 include( ABSPATH . 'wp-admin/admin-footer.php' );
Note: See TracChangeset
for help on using the changeset viewer.