[wp-trac] [WordPress Trac] #62755: Allow template duplication + concept of active templates

WordPress Trac noreply at wordpress.org
Wed Oct 22 18:33:10 UTC 2025


#62755: Allow template duplication + concept of active templates
-----------------------------+-----------------------
 Reporter:  ellatrix         |       Owner:  ellatrix
     Type:  enhancement      |      Status:  reopened
 Priority:  normal           |   Milestone:  6.9
Component:  Editor           |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  gutenberg-merge  |     Focuses:
-----------------------------+-----------------------

Comment (by ellatrix):

 @dd32 Interesting. What does `$object` and `$specific_template` return?
 Could it be that this returns a slug for this URL even though it's a 404?
 🤔

 {{{
 $object = get_queried_object();
 $specific_template = $object ? get_page_template_slug( $object ) : null;
 }}}

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


More information about the wp-trac mailing list