From 453747f8f86c233bed9b45b8afee74da8934e47f Mon Sep 17 00:00:00 2001 From: Jon Cave Date: Sun, 7 Oct 2012 14:46:39 +0000 Subject: [PATCH] Theme Customizer: Correctly update background-attachment property in live preview Props bainternet. Fixes #21732. git-svn-id: https://develop.svn.wordpress.org/trunk@22131 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/js/customize-preview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/js/customize-preview.js b/wp-includes/js/customize-preview.js index 9caa6b684a..caefe653a9 100644 --- a/wp-includes/js/customize-preview.js +++ b/wp-includes/js/customize-preview.js @@ -129,7 +129,7 @@ css += 'background-image: url("' + image() + '");'; css += 'background-position: top ' + position_x() + ';'; css += 'background-repeat: ' + repeat() + ';'; - css += 'background-position: top ' + attachment() + ';'; + css += 'background-attachment: ' + attachment() + ';'; } // Refresh the stylesheet by removing and recreating it.