[wp-trac] [WordPress Trac] #34147: _custom_background_cb() prints background-position in wrong order

WordPress Trac noreply at wordpress.org
Sun Oct 4 22:45:09 UTC 2015


#34147: _custom_background_cb() prints background-position in wrong order
--------------------------+-----------------------------
 Reporter:  swedish boy   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Even though browser are smart and can take css values (top, left, right)
 in any order x should come before y for browser compatibility.

 https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-
 includes/theme.php#L1277

 row 1275-1277 says:
 {{{
               if ( ! in_array( $position, array( 'center', 'right', 'left'
 ) ) )
                    $position = 'left';
               $position = " background-position: top $position;";
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34147>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list