Changeset 26352 for trunk/src/wp-includes/theme.php
- Timestamp:
- 11/24/2013 02:04:50 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/theme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r25272 r26352 1172 1172 $image = " background-image: url('$background');"; 1173 1173 1174 $repeat = get_theme_mod( 'background_repeat', 'repeat');1174 $repeat = get_theme_mod( 'background_repeat', get_theme_support( 'custom-background', 'background-repeat' ) ); 1175 1175 if ( ! in_array( $repeat, array( 'no-repeat', 'repeat-x', 'repeat-y', 'repeat' ) ) ) 1176 1176 $repeat = 'repeat'; 1177 1177 $repeat = " background-repeat: $repeat;"; 1178 1178 1179 $position = get_theme_mod( 'background_position_x', 'left');1179 $position = get_theme_mod( 'background_position_x', get_theme_support( 'custom-background', 'background-position' ) ); 1180 1180 if ( ! in_array( $position, array( 'center', 'right', 'left' ) ) ) 1181 1181 $position = 'left'; 1182 1182 $position = " background-position: top $position;"; 1183 1183 1184 $attachment = get_theme_mod( 'background_attachment', 'scroll');1184 $attachment = get_theme_mod( 'background_attachment', get_theme_support( 'custom-background', 'background-attachment' ) ); 1185 1185 if ( ! in_array( $attachment, array( 'fixed', 'scroll' ) ) ) 1186 1186 $attachment = 'scroll'; … … 1374 1374 1375 1375 $defaults = array( 1376 'default-image' => '', 1377 'default-color' => '', 1378 'wp-head-callback' => '_custom_background_cb', 1379 'admin-head-callback' => '', 1376 'default-image' => '', 1377 'background-repeat' => 'repeat', 1378 'background-position' => 'left', 1379 'background-attachment' => 'scroll', 1380 'default-color' => '', 1381 'wp-head-callback' => '_custom_background_cb', 1382 'admin-head-callback' => '', 1380 1383 'admin-preview-callback' => '', 1381 1384 );
Note: See TracChangeset
for help on using the changeset viewer.