Make WordPress Core


Ignore:
Timestamp:
05/30/2014 05:57:51 PM (11 years ago)
Author:
wonderboymusic
Message:

Cleanup for switch statements:

  • Move default to the bottom in WP_Theme_Install_List_Table
  • switch/endswitch syntax is not supported in Hack. Switch to switch (...) { .... } syntax. (A few template-type instances linger).

Fixes #28409.
See #27881.

File:
1 edited

Legend:

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

    r28500 r28633  
    9191    $class = '';
    9292    if ( isset($_GET['message']) ) {
    93         switch ( $_GET['message'] ) :
    94         case 'updated' :
    95             $message = __('Media attachment updated.');
    96             $class = 'updated';
    97             break;
    98         endswitch;
     93        switch ( $_GET['message'] ) {
     94            case 'updated' :
     95                $message = __('Media attachment updated.');
     96                $class = 'updated';
     97                break;
     98        }
    9999    }
    100100    if ( $message )
Note: See TracChangeset for help on using the changeset viewer.