Make WordPress Core

Changeset 28337


Ignore:
Timestamp:
05/07/2014 03:49:19 AM (10 years ago)
Author:
wonderboymusic
Message:

In wp-includes/theme.php, break is unreachable after return.

See #27882.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme.php

    r28124 r28337  
    14381438        case 'custom-header-uploads' :
    14391439            return add_theme_support( 'custom-header', array( 'uploads' => true ) );
    1440             break;
    14411440
    14421441        case 'custom-header' :
     
    16191618                return $_wp_theme_features[ $feature ][0][ $args[0] ];
    16201619            return false;
    1621             break;
     1620
    16221621        default :
    16231622            return $_wp_theme_features[ $feature ];
    1624             break;
    16251623    }
    16261624}
     
    17211719            $content_type = $args[0];
    17221720            return in_array( $content_type, $_wp_theme_features[$feature][0] );
    1723             break;
    17241721
    17251722        case 'html5':
     
    17321729            $type = $args[0];
    17331730            return in_array( $type, $_wp_theme_features[$feature][0] );
    1734             break;
    17351731
    17361732        case 'custom-header':
     
    17401736            $header_support = $args[0];
    17411737            return ( isset( $_wp_theme_features[$feature][0][$header_support] ) && $_wp_theme_features[$feature][0][$header_support] );
    1742             break;
    17431738    }
    17441739
Note: See TracChangeset for help on using the changeset viewer.