[wp-trac] [WordPress Trac] #48082: Replace `dirname(__FILE__)` with `__DIR__` (Performance improvement, massive patch)

WordPress Trac noreply at wordpress.org
Wed Jan 22 21:42:49 UTC 2020


#48082: Replace `dirname(__FILE__)` with `__DIR__` (Performance improvement,
massive patch)
-------------------------+--------------------------------------------
 Reporter:  ayeshrajans  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  5.4
Component:  General      |     Version:
 Severity:  minor        |  Resolution:
 Keywords:  has-patch    |     Focuses:  performance, coding-standards
-------------------------+--------------------------------------------

Comment (by valentinbora):

 @desrosj's patch [attachment:48082.diff] still applies cleanly onto the
 latest changeset at the time of writing [47105]

 1. Build succeeded
 1. `grunt test` did not reveal any failures pertaining to this patch

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48082#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list