[wp-trac] [WordPress Trac] #58207: Code Modernization/Performance optimization: Replace `dirname(__FILE__)` with `__DIR__`
WordPress Trac
noreply at wordpress.org
Thu Apr 27 10:46:27 UTC 2023
#58207: Code Modernization/Performance optimization: Replace `dirname(__FILE__)`
with `__DIR__`
-------------------------------------------+-----------------------------
Reporter: hztyfoon | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: performance, coding-standards |
-------------------------------------------+-----------------------------
in `wp-admin/options-privacy.php` file line number `17`:
https://github.com/WordPress/wordpress-
develop/blob/250250d35ede7402cf474a0f439d7f6c992dd7d7/src/wp-admin
/options-privacy.php#L17
`dirname( __FILE__ )` can be replaced with `__DIR__` magic constant.
Check ticket: #48082
check this commit: https://github.com/wordpress/wordpress-
develop/commit/e72fff9ceffb41d22c48febfc5f97c0cd46f5884
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58207>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list