[wp-trac] [WordPress Trac] #10759: Bug: wp_register_style does not allow stylesheets with parameters

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 9 17:35:14 UTC 2009


#10759: Bug: wp_register_style does not allow stylesheets with parameters
--------------------------+-------------------------------------------------
 Reporter:  mark8barnes   |        Owner:         
     Type:  defect (bug)  |       Status:  closed 
 Priority:  normal        |    Milestone:         
Component:  General       |      Version:  2.8.4  
 Severity:  normal        |   Resolution:  invalid
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by sivel):

  * keywords:  WP_Styles, wp_register_style, parameters =>
  * status:  new => closed
  * resolution:  => invalid
  * milestone:  2.9 =>


Comment:

 This is not a bug, but the way that the function is intended to work.  The
 & character by itself is an illegal entity in XHTML.  So & is normally
 replaced with & however & is a correct html entity for the &.

 This was discussed several months ago on the wp-hackers list in this
 thread: http://lists.automattic.com/pipermail/wp-
 hackers/2009-February/thread.html#25046

 In short it was proven that the function is acting as expected and there
 are no bad side effects from the way that it does things.  The thread
 actually refers to wp_enqueue_script but it is the same principal in the
 end.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10759#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list