[wp-trac] [WordPress Trac] #39997: Loads of child style.css using version of parent

WordPress Trac noreply at wordpress.org
Tue Feb 28 23:32:43 UTC 2017


#39997: Loads of child style.css using version of parent
---------------------------+-----------------------------
 Reporter:  parsmizban     |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Script Loader  |    Version:  4.7.2
 Severity:  normal         |   Keywords:
  Focuses:  template       |
---------------------------+-----------------------------
 Hi,

 I think there is a bug when WordPress loads style.css file of child theme
 using version of parent theme, It should load style of child theme using
 child version,

 Example:

 Parent version: 4.7.2
 Child version: 1.0.0


 {{{
 <link rel='stylesheet' id='parent-style-css'
 href='http://localhost/wordpress/wp-
 content/themes/twentyfifteen/style.css?ver=4.7.2' type='text/css'
 media='all' />

 <link rel='stylesheet' id='twentyfifteen-style-css'
 href='http://localhost/wordpress/wp-content/themes/child-
 theme/style.css?ver=4.7.2' type='text/css' media='all' />

 }}}

 It should be :


 {{{
 <link rel='stylesheet' id='parent-style-css'
 href='http://localhost/wordpress/wp-
 content/themes/twentyfifteen/style.css?ver=4.7.2' type='text/css'
 media='all' />

 <link rel='stylesheet' id='twentyfifteen-style-css'
 href='http://localhost/wordpress/wp-content/themes/child-
 theme/style.css?ver=1.0.0' type='text/css' media='all' />

 }}}

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


More information about the wp-trac mailing list