From 49251efc744f49f45dc16670b18b2e7f2ded822d Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Wed, 7 May 2014 03:50:14 +0000 Subject: [PATCH] In `wp-includes/theme.php`, `break` is unreachable after `return`. See #27882. Built from https://develop.svn.wordpress.org/trunk@28337 git-svn-id: http://core.svn.wordpress.org/trunk@28165 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index 00b3c39d1f..403e8a95f1 100644 --- a/wp-includes/theme.php +++ b/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; } /**