Changeset 21013
- Timestamp:
- 06/06/2012 09:24:22 PM (13 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-customize-manager.php
r21010 r21013 313 313 'values' => array(), 314 314 'channel' => esc_js( $_POST['customize_messenger_channel'] ), 315 'backgroundImageHasDefault' => current_theme_supports( 'custom-background', 'default-image' ), 315 316 ); 316 317 -
trunk/wp-includes/js/customize-preview.dev.js
r20988 r21013 110 110 111 111 update = function() { 112 var css = ''; 112 var css = '', 113 hasDefault = api.settings.backgroundImageHasDefault; 113 114 114 115 // The body will support custom backgrounds if either … … 116 117 // 117 118 // See get_body_class() in /wp-includes/post-template.php 118 body.toggleClass( 'custom-background', !! ( color() || image() ) );119 body.toggleClass( 'custom-background', !! ( color() || image() || hasDefault ) ); 119 120 120 121 if ( color() ) … … 126 127 css += 'background-repeat: ' + repeat() + ';'; 127 128 css += 'background-position: top ' + attachment() + ';'; 129 } else if ( hasDefault ) { 130 css += 'background-image: none;'; 128 131 } 129 132
Note: See TracChangeset
for help on using the changeset viewer.