X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fa11948979fd6a4ea5705dc613b239699a459db3..b925718b4bf2dd47a8429f844d0a255ca6e35bd1:/wp-admin/media.php?ds=sidebyside diff --git a/wp-admin/media.php b/wp-admin/media.php index c9f03483..5f13d3ad 100644 --- a/wp-admin/media.php +++ b/wp-admin/media.php @@ -14,7 +14,7 @@ $submenu_file = 'upload.php'; wp_reset_vars(array('action')); -switch( $action ) : +switch ( $action ) { case 'editattachment' : $attachment_id = (int) $_POST['attachment_id']; check_admin_referer('media-form'); @@ -40,7 +40,7 @@ case 'editattachment' : exit; } - // no break + // No break. case 'edit' : $title = __('Edit Media'); @@ -80,8 +80,8 @@ case 'edit' : get_current_screen()->set_help_sidebar( '
' . __('For more information:') . '
' . - '' . __('Documentation on Edit Media') . '
' . - '' . __('Support Forums') . '
' + '' . __('Documentation on Edit Media') . '
' . + '' . __('Support Forums') . '
' ); require( ABSPATH . 'wp-admin/admin-header.php' ); @@ -90,12 +90,12 @@ case 'edit' : $message = ''; $class = ''; if ( isset($_GET['message']) ) { - switch ( $_GET['message'] ) : - case 'updated' : - $message = __('Media attachment updated.'); - $class = 'updated'; - break; - endswitch; + switch ( $_GET['message'] ) { + case 'updated' : + $message = __('Media file updated.'); + $class = 'updated'; + break; + } } if ( $message ) echo "$message