Changeset 47855 for trunk/src/wp-admin/post.php
- Timestamp:
- 05/26/2020 09:35:34 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/post.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/post.php
r47808 r47855 114 114 $post_id = 'postajaxpost' === $action ? edit_post() : write_post(); 115 115 redirect_post( $post_id ); 116 exit ();116 exit; 117 117 118 118 case 'edit': … … 121 121 if ( empty( $post_id ) ) { 122 122 wp_redirect( admin_url( 'post.php' ) ); 123 exit ();123 exit; 124 124 } 125 125 … … 148 148 wp_set_post_lock( $post_id ); 149 149 wp_redirect( get_edit_post_link( $post_id, 'url' ) ); 150 exit ();150 exit; 151 151 } 152 152 … … 234 234 redirect_post( $post_id ); // Send user on their way while we keep working. 235 235 236 exit ();236 exit; 237 237 238 238 case 'trash': … … 271 271 ) 272 272 ); 273 exit ();273 exit; 274 274 275 275 case 'untrash': … … 293 293 294 294 wp_redirect( add_query_arg( 'untrashed', 1, $sendback ) ); 295 exit ();295 exit; 296 296 297 297 case 'delete': … … 322 322 323 323 wp_redirect( add_query_arg( 'deleted', 1, $sendback ) ); 324 exit ();324 exit; 325 325 326 326 case 'preview': … … 330 330 331 331 wp_redirect( $url ); 332 exit ();332 exit; 333 333 334 334 case 'toggle-custom-fields': … … 342 342 343 343 wp_safe_redirect( wp_get_referer() ); 344 exit ();344 exit; 345 345 346 346 default: … … 357 357 358 358 wp_redirect( admin_url( 'edit.php' ) ); 359 exit ();359 exit; 360 360 } // End switch. 361 361
Note: See TracChangeset
for help on using the changeset viewer.