[wp-trac] [WordPress Trac] #60915: WP 6.5 - RecursiveDirectoryIterator causing E_WARNING errors in New Relic
WordPress Trac
noreply at wordpress.org
Thu Apr 4 18:53:55 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: Awaiting Review
Component: General | Version: 6.5
Severity: trivial | Resolution: fixed
Keywords: has-patch changes-requested | Focuses: performance
-----------------------------------------+------------------------------
Changes (by joemcgill):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"57928" 57928]:
{{{
#!CommitTicketReference repository="" revision="57928"
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].
Props iCaleb, sean212, mukesh27, joemcgill.
Fixes #60915.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60915#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list