From f945487f45706512f99d9bfef8ec0a7ca2e994d3 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 7 May 2014 03:49:19 +0000 Subject: [PATCH] In `wp-includes/theme.php`, `break` is unreachable after `return`. See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28337 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/theme.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 00b3c39d1f..403e8a95f1 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -1437,7 +1437,6 @@ function add_theme_support( $feature ) { case 'custom-header-uploads' : return add_theme_support( 'custom-header', array( 'uploads' => true ) ); - break; case 'custom-header' : if ( ! is_array( $args ) ) @@ -1618,10 +1617,9 @@ function get_theme_support( $feature ) { if ( isset( $_wp_theme_features[ $feature ][0][ $args[0] ] ) ) return $_wp_theme_features[ $feature ][0][ $args[0] ]; return false; - break; + default : return $_wp_theme_features[ $feature ]; - break; } } @@ -1720,7 +1718,6 @@ function current_theme_supports( $feature ) { return true; $content_type = $args[0]; return in_array( $content_type, $_wp_theme_features[$feature][0] ); - break; case 'html5': case 'post-formats': @@ -1731,7 +1728,6 @@ function current_theme_supports( $feature ) { $type = $args[0]; return in_array( $type, $_wp_theme_features[$feature][0] ); - break; case 'custom-header': case 'custom-background' : @@ -1739,7 +1735,6 @@ function current_theme_supports( $feature ) { // an array to add_theme_support() $header_support = $args[0]; return ( isset( $_wp_theme_features[$feature][0][$header_support] ) && $_wp_theme_features[$feature][0][$header_support] ); - break; } /**