Changeset 36909
- Timestamp:
- 03/09/2016 09:50:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r36539 r36909 1752 1752 $args = array_slice( func_get_args(), 1 ); 1753 1753 switch ( $feature ) { 1754 case 'custom-logo' : 1754 1755 case 'custom-header' : 1755 1756 case 'custom-background' : … … 1878 1879 return in_array( $type, $_wp_theme_features[$feature][0] ); 1879 1880 1881 case 'custom-logo': 1880 1882 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] ] ); 1886 1886 } 1887 1887
Note: See TracChangeset
for help on using the changeset viewer.