From 63af26e0cde0abae1b35a42beaf400349a052e08 Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 18 Feb 2010 04:46:40 +0000 Subject: [PATCH] Use background-position, as background-position-x has incomplete browser support (Webkit and IE6+ only, no Firefox or Opera). See #12186 git-svn-id: http://svn.automattic.com/wordpress/trunk@13190 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/theme.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/theme.php b/wp-includes/theme.php index f06e09e91a..c9891b8f9d 100644 --- a/wp-includes/theme.php +++ b/wp-includes/theme.php @@ -1407,11 +1407,11 @@ function _custom_background_cb() { $repeat = 'background-repeat: repeat;'; $position = get_theme_mod('background_position', 'left'); if ( 'center' == $position ) - $position = 'background-position-x: center;'; + $position = 'background-position: top center;'; elseif ( 'right' == $position ) - $position = 'background-position-x: right;'; + $position = 'background-position: top right;'; else - $position = 'background-position-x: left;'; + $position = 'background-position: top left;'; $attachment = get_theme_mod('background_attachment', 'fixed'); if ( 'scroll' == $attachment ) $attachment = 'background-attachment: scroll;';