Ticket #12186: theme.php.diff
| File theme.php.diff, 1.4 KB (added by lancewillett, 2 years ago) |
|---|
-
Applications/MAMP/htdocs/wordpress/wp/wp-includes/theme.php
1342 1342 * @return string 1343 1343 */ 1344 1344 function get_background_image() { 1345 $default = defined('BACKGROUND_IMAGE') ? BACKGROUND_IMAGE : '';1345 $default = defined('BACKGROUND_IMAGE') ? BACKGROUND_IMAGE : ''; 1346 1346 1347 1347 return get_theme_mod('background_image', $default); 1348 1348 } … … 1357 1357 } 1358 1358 1359 1359 /** 1360 * Retrieve value for custom background color. 1361 * 1362 * @since 3.0.0 1363 * @uses BACKGROUND_COLOR 1364 * 1365 * @return string 1366 */ 1367 function get_background_color() { 1368 $default = defined('BACKGROUND_COLOR') ? BACKGROUND_COLOR : ''; 1369 1370 return get_theme_mod('background_color', $default); 1371 } 1372 1373 /** 1374 * Display background color value. 1375 * 1376 * @since 3.0.0 1377 */ 1378 function background_color() { 1379 echo get_background_color(); 1380 } 1381 1382 /** 1360 1383 * Add callbacks for background image display. 1361 1384 * 1362 1385 * The parameter $header_callback callback will be required to display the … … 1420 1443 ?> 1421 1444 <style type="text/css"> 1422 1445 body { 1423 background-image:url('<?php background_image(); ?>'); 1446 background-color: #<?php background_color(); ?>; 1447 background-image: url('<?php background_image(); ?>'); 1424 1448 <?php echo $repeat; ?> 1425 1449 <?php echo $position; ?> 1426 1450 <?php echo $attachment; ?>
