Make WordPress Core

Ticket #12186: background-position-x.patch

File background-position-x.patch, 795 bytes (added by iammattthomas, 15 years ago)

Change background-position to background-position-x so that images stay vertically aligned to the top

  • wp-includes/theme.php

     
    14041404                $repeat = 'background-repeat: repeat;';
    14051405        $position = get_theme_mod('background_position');
    14061406        if  ( 'center' == $position )
    1407                 $position = 'background-position: center;';
     1407                $position = 'background-position-x: center;';
    14081408        elseif ( 'right' == $position )
    1409                 $position = 'background-position: right;';
     1409                $position = 'background-position-x: right;';
    14101410        else
    1411                 $position = 'background-position: left;';
     1411                $position = 'background-position-x: left;';
    14121412        $attachment = get_theme_mod('background_attachment');
    14131413        if ( 'scroll' == $attachment )
    14141414                $attachment = 'background-attachment: scroll;';