[wp-trac] [WordPress Trac] #42513: WP_Theme::get_post_templates() is extremely inefficient for large themes
WordPress Trac
noreply at wordpress.org
Sun Nov 12 00:51:14 UTC 2017
#42513: WP_Theme::get_post_templates() is extremely inefficient for large themes
-------------------------------------+-------------------------------------
Reporter: gschoppe | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.8.3
Severity: normal | Resolution:
Keywords: has-patch needs-unit- | Focuses: administration,
tests | performance
-------------------------------------+-------------------------------------
Comment (by gschoppe):
In the process of writing unit tests, I discovered that get_file data()
seems to not support single line file header declarations, such as
{{{#!php
<?php // Template Name: Test ?>
}}}
This may be why the code was not previously using get_file_data(). I am
now looking into whether it is feasible to add support for single line
headers to get_file_data() as this lack of support seems to be an
oversight, and this format needs uniform syntax across all use cases.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42513#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list