Make WordPress Core

Changeset 28312


Ignore:
Timestamp:
05/06/2014 06:14:16 PM (10 years ago)
Author:
wonderboymusic
Message:

In wp-admin/post.php, break is unreachabled after exit.

See #27882.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/post.php

    r27630 r28312  
    129129    wp_dashboard_quick_press();
    130130    exit;
    131     break;
    132131
    133132case 'postajaxpost':
     
    137136    redirect_post( $post_id );
    138137    exit();
    139     break;
    140138
    141139case 'edit':
     
    238236
    239237    exit();
    240     break;
    241238
    242239case 'trash':
     
    262259    wp_redirect( add_query_arg( array('trashed' => 1, 'ids' => $post_id), $sendback ) );
    263260    exit();
    264     break;
    265261
    266262case 'untrash':
     
    281277    wp_redirect( add_query_arg('untrashed', 1, $sendback) );
    282278    exit();
    283     break;
    284279
    285280case 'delete':
     
    307302    wp_redirect( add_query_arg('deleted', 1, $sendback) );
    308303    exit();
    309     break;
    310304
    311305case 'preview':
     
    316310    wp_redirect($url);
    317311    exit();
    318     break;
    319312
    320313default:
    321314    wp_redirect( admin_url('edit.php') );
    322315    exit();
    323     break;
    324316} // end switch
    325317include( ABSPATH . 'wp-admin/admin-footer.php' );
Note: See TracChangeset for help on using the changeset viewer.