[wp-trac] [WordPress Trac] #60915: WP 6.5 - RecursiveDirectoryIterator causing E_WARNING errors in New Relic
WordPress Trac
noreply at wordpress.org
Tue Apr 9 01:23:37 UTC 2024
#60915: WP 6.5 - RecursiveDirectoryIterator causing E_WARNING errors in New Relic
------------------------------------------------+--------------------------
Reporter: iCaleb | Owner: joemcgill
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.5.1
Component: General | Version: 6.5
Severity: trivial | Resolution: fixed
Keywords: has-patch fixed-major dev-reviewed | Focuses: performance
------------------------------------------------+--------------------------
Changes (by joemcgill):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"57947" 57947]:
{{{
#!CommitTicketReference repository="" revision="57947"
Themes: Avoid errors in some environments from _get_block_templates_paths.
This adds an is_dir() check in _get_block_templates_paths before trying to
run a RecursiveDirectoryIterator to avoid errors being reported in New
Relic even thought the errors should be handled by a try/catch block.
Follow-up to [57215].
Reviewed by jorbin.
Merges [57928] to the to the 6.5 branch.
Props iCaleb, sean212, mukesh27, joemcgill.
Fixes #60915.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60915#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list