[wp-trac] [WordPress Trac] #50048: wp_ajax_update_theme is broken when updating themes whose styles.css file is not located in the root

WordPress Trac noreply at wordpress.org
Fri May 1 16:43:14 UTC 2020


#50048: wp_ajax_update_theme is broken when updating themes whose styles.css file
is not located in the root
--------------------------+------------------------------
 Reporter:  novecode      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  5.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  template
--------------------------+------------------------------

Comment (by Ipstenu):

 Based on the documentation - https://developer.wordpress.org/themes/basics
 /organizing-theme-files/#theme-folder-and-file-structure - there should
 always be a style.css in the main folder.

 In fat there's a notice:

 > style.css should reside in the root directory of your theme not within
 the CSS directory.

 So I would say yes, this is by design, and the real bug would be letting
 the theme load without the style.css in the correct location.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50048#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list