From 13584938e113d036402402be6d079f57626c48d9 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@13190 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;';