[wp-trac] [WordPress Trac] #54645: Allow numeric theme name

WordPress Trac noreply at wordpress.org
Sat May 28 15:53:33 UTC 2022


#54645: Allow numeric theme name
-------------------------------------+-------------------------------------
 Reporter:  alvastar                 |       Owner:  spacedmonkey
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  Future Release
Component:  REST API                 |     Version:  5.7
 Severity:  normal                   |  Resolution:
 Keywords:  needs-testing has-patch  |     Focuses:  administration,
  needs-unit-tests                   |  template, multisite, rest-api
-------------------------------------+-------------------------------------

Comment (by lopo):

 Replying to [comment:6 SergeyBiryukov]:
 > Replying to [comment:4 lopo]:
 > > I'm removing the `needs-unit-tests` keyword since there's currently no
 default theme with a numerical dirname to be retrieved by a call to
 `wp_get_themes()`.
 >
 > Thanks for the patch! I think this change would still benefit from unit
 tests to make sure the fix works as expected and there are no regressions
 at a later point.

 Would love to, @SergeyBiryukov, but I'm not sure how it can be done
 without adding a theme to the default ones?

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


More information about the wp-trac mailing list