Changeset 26594 for trunk/src/wp-includes/theme.php
- Timestamp:
- 12/03/2013 09:35:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r26501 r26594 1281 1281 $image = " background-image: url('$background');"; 1282 1282 1283 $repeat = get_theme_mod( 'background_repeat', get_theme_support( 'custom-background', ' background-repeat' ) );1283 $repeat = get_theme_mod( 'background_repeat', get_theme_support( 'custom-background', 'default-repeat' ) ); 1284 1284 if ( ! in_array( $repeat, array( 'no-repeat', 'repeat-x', 'repeat-y', 'repeat' ) ) ) 1285 1285 $repeat = 'repeat'; 1286 1286 $repeat = " background-repeat: $repeat;"; 1287 1287 1288 $position = get_theme_mod( 'background_position_x', get_theme_support( 'custom-background', ' background-position' ) );1288 $position = get_theme_mod( 'background_position_x', get_theme_support( 'custom-background', 'default-position-x' ) ); 1289 1289 if ( ! in_array( $position, array( 'center', 'right', 'left' ) ) ) 1290 1290 $position = 'left'; 1291 1291 $position = " background-position: top $position;"; 1292 1292 1293 $attachment = get_theme_mod( 'background_attachment', get_theme_support( 'custom-background', ' background-attachment' ) );1293 $attachment = get_theme_mod( 'background_attachment', get_theme_support( 'custom-background', 'default-attachment' ) ); 1294 1294 if ( ! in_array( $attachment, array( 'fixed', 'scroll' ) ) ) 1295 1295 $attachment = 'scroll'; … … 1484 1484 $defaults = array( 1485 1485 'default-image' => '', 1486 ' background-repeat'=> 'repeat',1487 ' background-position'=> 'left',1488 ' background-attachment'=> 'scroll',1486 'default-repeat' => 'repeat', 1487 'default-position-x' => 'left', 1488 'default-attachment' => 'scroll', 1489 1489 'default-color' => '', 1490 1490 'wp-head-callback' => '_custom_background_cb',
Note: See TracChangeset
for help on using the changeset viewer.