mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-01 08:37:55 +02:00
Use background-position-x. Props iammattthomas. see #12186
git-svn-id: http://svn.automattic.com/wordpress/trunk@13188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
79f04413f4
commit
447b0a50da
@ -1404,11 +1404,11 @@ function _custom_background_cb() {
|
|||||||
$repeat = 'background-repeat: repeat;';
|
$repeat = 'background-repeat: repeat;';
|
||||||
$position = get_theme_mod('background_position');
|
$position = get_theme_mod('background_position');
|
||||||
if ( 'center' == $position )
|
if ( 'center' == $position )
|
||||||
$position = 'background-position: center;';
|
$position = 'background-position-x: center;';
|
||||||
elseif ( 'right' == $position )
|
elseif ( 'right' == $position )
|
||||||
$position = 'background-position: right;';
|
$position = 'background-position-x: right;';
|
||||||
else
|
else
|
||||||
$position = 'background-position: left;';
|
$position = 'background-position-x: left;';
|
||||||
$attachment = get_theme_mod('background_attachment');
|
$attachment = get_theme_mod('background_attachment');
|
||||||
if ( 'scroll' == $attachment )
|
if ( 'scroll' == $attachment )
|
||||||
$attachment = 'background-attachment: scroll;';
|
$attachment = 'background-attachment: scroll;';
|
||||||
|
Loading…
Reference in New Issue
Block a user