diff --git a/wp-admin/includes/class-wp-theme-install-list-table.php b/wp-admin/includes/class-wp-theme-install-list-table.php
index 1aa131accc..869dd22d19 100644
--- a/wp-admin/includes/class-wp-theme-install-list-table.php
+++ b/wp-admin/includes/class-wp-theme-install-list-table.php
@@ -244,10 +244,6 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
$status = $this->_get_theme_status( $theme );
switch ( $status ) {
- default:
- case 'install':
- $actions[] = '' . __( 'Install Now' ) . '';
- break;
case 'update_available':
$actions[] = '' . __( 'Update' ) . '';
break;
@@ -255,6 +251,10 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
case 'latest_installed':
$actions[] = '' . _x( 'Installed', 'theme' ) . '';
break;
+ case 'install':
+ default:
+ $actions[] = '' . __( 'Install Now' ) . '';
+ break;
}
$actions[] = '' . __( 'Preview' ) . '';
@@ -367,10 +367,6 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
?>
slug ) ) . '">' . __( 'Install' ) . '';
- break;
case 'update_available':
echo '
' . __( 'Update' ) . '';
break;
@@ -378,6 +374,10 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
case 'latest_installed':
echo '
' . _x( 'Installed', 'theme' ) . '';
break;
+ case 'install':
+ default:
+ echo '
' . __( 'Install' ) . '';
+ break;
} ?>
diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php
index 6e267241de..b265e1f592 100644
--- a/wp-admin/includes/dashboard.php
+++ b/wp-admin/includes/dashboard.php
@@ -601,16 +601,16 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
comment_type ) :
- case 'pingback' :
- $type = __( 'Pingback' );
- break;
- case 'trackback' :
- $type = __( 'Trackback' );
- break;
- default :
- $type = ucwords( $comment->comment_type );
- endswitch;
+ switch ( $comment->comment_type ) {
+ case 'pingback' :
+ $type = __( 'Pingback' );
+ break;
+ case 'trackback' :
+ $type = __( 'Trackback' );
+ break;
+ default :
+ $type = ucwords( $comment->comment_type );
+ }
$type = esc_html( $type );
?>
$message
\n\t- ";
- $return .= join( "
\n\t- ", $a );
- $return .= "
\n
\n"; - break; - default : - $return = join( $args['separator'], $a ); - break; - endswitch; + switch ( $args['format'] ) { + case 'array' : + $return =& $a; + break; + case 'list' : + $return = "\n\t- ";
+ $return .= join( "
\n\t- ", $a );
+ $return .= "
\n
\n"; + break; + default : + $return = join( $args['separator'], $a ); + break; + } if ( $args['filter'] ) { /** diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 1179ca1121..9a4bf4ec95 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2301,7 +2301,7 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) { $title = $error_data['title']; } $errors = $message->get_error_messages(); - switch ( count( $errors ) ) : + switch ( count( $errors ) ) { case 0 : $message = ''; break; @@ -2311,7 +2311,7 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) { default : $message = "\n\t\t- " . join( "
\n\t\t- ", $errors ) . "
\n\t
"; break; - endswitch; + } } elseif ( is_string( $message ) ) { $message = "$message
"; }