Changeset 47219 for trunk/src/wp-admin/includes/dashboard.php
- Timestamp:
- 02/09/2020 04:52:28 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/dashboard.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r47198 r47219 510 510 if ( $last_post_id ) { 511 511 $post = get_post( $last_post_id ); 512 if ( empty( $post ) || $post->post_status != 'auto-draft' ) { // auto-draft doesn't existsanymore.512 if ( empty( $post ) || 'auto-draft' !== $post->post_status ) { // auto-draft doesn't exist anymore. 513 513 $post = get_default_post_to_edit( 'post', true ); 514 514 update_user_option( get_current_user_id(), 'dashboard_quick_press_last_post_id', (int) $post->ID ); // Save post_ID.
Note: See TracChangeset
for help on using the changeset viewer.