WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/09/2016 09:50:37 PM (4 years ago)
Author:
obenland
Message:

Themes: Support second argument in theme support for custom logo.

See #33755.

File:
1 edited

Legend:

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

    r36539 r36909  
    17521752    $args = array_slice( func_get_args(), 1 );
    17531753    switch ( $feature ) {
     1754        case 'custom-logo' :
    17541755        case 'custom-header' :
    17551756        case 'custom-background' :
     
    18781879            return in_array( $type, $_wp_theme_features[$feature][0] );
    18791880
     1881        case 'custom-logo':
    18801882        case 'custom-header':
    1881         case 'custom-background' :
    1882             // specific custom header and background capabilities can be registered by passing
    1883             // an array to add_theme_support()
    1884             $header_support = $args[0];
    1885             return ( isset( $_wp_theme_features[$feature][0][$header_support] ) && $_wp_theme_features[$feature][0][$header_support] );
     1883        case 'custom-background':
     1884            // Specific capabilities can be registered by passing an array to add_theme_support().
     1885            return ( isset( $_wp_theme_features[ $feature ][0][ $args[0] ] ) && $_wp_theme_features[ $feature ][0][ $args[0] ] );
    18861886    }
    18871887
Note: See TracChangeset for help on using the changeset viewer.