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

WordPress Trac noreply at wordpress.org
Tue Sep 27 09:37:47 UTC 2022


#54645: Allow numeric theme name
-------------------------------------+-------------------------------------
 Reporter:  alvastar                 |       Owner:  spacedmonkey
     Type:  defect (bug)             |      Status:  assigned
 Priority:  normal                   |   Milestone:  6.1
Component:  Themes                   |     Version:  5.7
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch has-unit-      |     Focuses:  administration,
  tests                              |  template, multisite
-------------------------------------+-------------------------------------
Changes (by Ankit K Gupta):

 * keywords:  needs-testing has-patch has-unit-tests => has-patch has-unit-
     tests


Comment:

 Hello All, I also got a chance to test this issue with some other theme
 like, Numeric, Alphanumeric, etc and PR https://github.com/WordPress
 /wordpress-develop/pull/2758 fixed the issue.

 == Test Report

 === Env
 * WordPress - 6.1-beta1-54282-src
 * Chrome Version - 105.0.5195.125 (Official Build) (x86_64)
 * OS -  macOS Monterey V12.3.1
 * Theme: Twenty Twenty Two
 * PHP - 8.0.0
 * Web Server - Apache
 * Database - MySQL 5.7.28
 * Used PR - https://github.com/WordPress/wordpress-develop/pull/2758


 === Steps to test

 1. Rename the theme name from style.css and folder name like 'wp-
 content/themes/2022'or 'wp-content/themes/AB123'
 2. Go to Appearance > Themes
 3. Activate your theme which has a name set in step-1



 === Test result

 A theme that has names like 'ABC2022' / '2022' / 'Twenty Twenty Two', etc
 is appearing as active (if activated) with available option'Customize'.

 Screencast example:

 **Before Fix -**

 [[Image(https://i.imgur.com/Gpc9Anm.jpg)]]


 **After Fix by PR2758 -**

 [[Image(https://i.imgur.com/IUMZA6k.jpg)]]

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


More information about the wp-trac mailing list