[wp-trac] [WordPress Trac] #60881: Introduce 'template_name' label to custom post types and custom taxonomies

WordPress Trac noreply at wordpress.org
Sun Jun 9 01:18:24 UTC 2024


#60881: Introduce 'template_name' label to custom post types and custom taxonomies
----------------------------------------------+---------------------
 Reporter:  aljullu                           |       Owner:  (none)
     Type:  enhancement                       |      Status:  new
 Priority:  normal                            |   Milestone:  6.6
Component:  Editor                            |     Version:  6.1
 Severity:  normal                            |  Resolution:
 Keywords:  has-patch commit gutenberg-merge  |     Focuses:
----------------------------------------------+---------------------

Comment (by rajinsharwar):

 I have tested the Patch: [https://github.com/WordPress/wordpress-
 develop/pull/6344 PR-6344]

 I found:-
 1. Setting the template_name displays the string in the add new template
 screen. ✅ https://prnt.sc/B4slbn9qVW_1 https://prnt.sc/KH0p7q4NUHGm

 2. Setting labels without the template name displays the singular name ✅
 https://prnt.sc/HyZBtizHYWVp https://prnt.sc/VEtgEDJ2_08t

 3. Setting neither $label nor $labels display the object slug to
 differentiate. ✅ https://prnt.sc/fy0tmRaR0FNP
 https://prnt.sc/dPR_Dfln9AZt

 4. Setting singular $label without $labels displays the $label in the
 default string. ✅ https://prnt.sc/Cd_7U7a6PcEH
 https://prnt.sc/KLbtRNfZYDD0

 Looks good with the tests and changes. 👍

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


More information about the wp-trac mailing list