Changeset 37077 for trunk/src/wp-includes/theme.php
- Timestamp:
- 03/24/2016 02:01:50 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/theme.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r37040 r37077 1560 1560 break; 1561 1561 1562 case 'custom-logo': 1563 $defaults = array( 1564 'width' => null, 1565 'height' => null, 1566 'flex-width' => false, 1567 'flex-height' => false, 1568 'header-text' => '', 1569 ); 1570 $args[0] = wp_parse_args( array_intersect_key( $args[0], $defaults ), $defaults ); 1571 1572 // Allow full flexibility if no size is specified. 1573 if ( is_null( $args[0]['width'] ) && is_null( $args[0]['height'] ) ) { 1574 $args[0]['flex-width'] = true; 1575 $args[0]['flex-height'] = true; 1576 } 1577 break; 1578 1562 1579 case 'custom-header-uploads' : 1563 1580 return add_theme_support( 'custom-header', array( 'uploads' => true ) );
Note: See TracChangeset
for help on using the changeset viewer.