[wp-trac] [WordPress Trac] #57886: get_post_templates includes results of get_block_templates while caching (WP_Theme)
WordPress Trac
noreply at wordpress.org
Wed Mar 8 14:19:52 UTC 2023
#57886: get_post_templates includes results of get_block_templates while caching
(WP_Theme)
--------------------------+------------------------------
Reporter: maniu | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.7
Severity: minor | Resolution:
Keywords: needs-patch | Focuses: multisite
--------------------------+------------------------------
Changes (by hellofromTonya):
* version: trunk => 4.7
Comment:
Hello @maniu,
Welcome back to WordPress Core's Trac! Thank you for reporting this issue.
I'm adjusting the `Version` as this was not introduced in 6.2.0. When was
it introduced?
This code was original introduced in WordPress 3.4.0 via [20029] / #20103
but was for only `page` post types. In WordPress 4.7.0 via [38951] /
#18375, it was changed to support all post types and renamed from
`WP_Theme::get_page_templates()` to `WP_Theme::get_post_templates()`.
So I'll change the `Version` to 4.7.0.
Also pinging @spacedmonkey for caching performance input.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57886#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list