[wp-trac] [WordPress Trac] #64018: Improve PHPDoc for template_redirect hook

WordPress Trac noreply at wordpress.org
Mon Sep 22 17:16:05 UTC 2025


#64018: Improve PHPDoc for template_redirect hook
-------------------------+-----------------------------
 Reporter:  apermo       |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  6.9
Component:  Themes       |     Version:  1.5
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:  docs
-------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:5 apermo]:
 > As mentioned above, I realized that the hook was regularly
 misunderstood, and the added documentation is a shortened version of the
 official documentation of the filter.

 Thanks! I chose to include the full version of it, so that all the context
 is available after this DocBlock is imported to the developer reference
 following the 6.9 release. (I think the existing More Information block on
 that page should then be removed to avoid duplicate information.)

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


More information about the wp-trac mailing list