Changeset 20221 for trunk/wp-includes/theme.php
- Timestamp:
- 03/20/2012 08:34:49 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r20218 r20221 1284 1284 1285 1285 case 'custom-header' : 1286 if ( ! is_array( $args ) ) 1287 $args = array( 0 => array() ); 1288 1286 1289 $defaults = array( 1287 1290 'default-image' => '', … … 1330 1333 if ( defined( 'HEADER_IMAGE_HEIGHT' ) ) 1331 1334 $args[0]['height'] = (int) HEADER_IMAGE_HEIGHT; 1332 elseif ( !isset( $args[0]['height'] ) )1335 elseif ( isset( $args[0]['height'] ) ) 1333 1336 define( 'HEADER_IMAGE_HEIGHT', (int) $args[0]['height'] ); 1334 1337 … … 1340 1343 if ( defined( 'HEADER_IMAGE' ) ) 1341 1344 $args[0]['default-image'] = HEADER_IMAGE; 1345 elseif ( isset( $args[0]['default-image'] ) ) 1346 define( 'HEADER_IMAGE', $args[0]['default-image'] ); 1342 1347 1343 1348 if ( $jit && ! empty( $args[0]['default-image'] ) ) 1344 1349 $args[0]['random-default'] = false; 1345 1346 if ( ! defined( 'HEADER_IMAGE' ) && ( isset( $args[0]['default-image'] ) || isset( $args[0]['random-default'] ) ) )1347 define( 'HEADER_IMAGE', $args[0]['default-image'] );1348 1350 1349 1351 // If headers are supported, and we still don't have a defined width or height, … … 1359 1361 1360 1362 case 'custom-background' : 1363 if ( ! is_array( $args ) ) 1364 $args = array( 0 => array() ); 1365 1361 1366 $defaults = array( 1362 1367 'default-image' => '',
Note: See TracChangeset
for help on using the changeset viewer.