Changeset 13574 for trunk/wp-includes/theme.php
- Timestamp:
- 03/03/2010 05:10:43 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/theme.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r13469 r13574 1358 1358 */ 1359 1359 function get_background_image() { 1360 $default = defined('BACKGROUND_IMAGE') ? BACKGROUND_IMAGE : '';1360 $default = defined('BACKGROUND_IMAGE') ? BACKGROUND_IMAGE : ''; 1361 1361 1362 1362 return get_theme_mod('background_image', $default); … … 1370 1370 function background_image() { 1371 1371 echo get_background_image(); 1372 } 1373 1374 /** 1375 * Retrieve value for custom background color. 1376 * 1377 * @since 3.0.0 1378 * @uses BACKGROUND_COLOR 1379 * 1380 * @return string 1381 */ 1382 function get_background_color() { 1383 $default = defined('BACKGROUND_COLOR') ? BACKGROUND_COLOR : ''; 1384 1385 return get_theme_mod('background_color', $default); 1386 } 1387 1388 /** 1389 * Display background color value. 1390 * 1391 * @since 3.0.0 1392 */ 1393 function background_color() { 1394 echo get_background_color(); 1372 1395 } 1373 1396 … … 1438 1461 <style type="text/css"> 1439 1462 body { 1440 background-image:url('<?php background_image(); ?>'); 1463 background-color: #<?php background_color(); ?>; 1464 background-image: url('<?php background_image(); ?>'); 1441 1465 <?php echo $repeat; ?> 1442 1466 <?php echo $position; ?>
Note: See TracChangeset
for help on using the changeset viewer.