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

WordPress Trac noreply at wordpress.org
Wed Jan 22 22:15:46 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
-------------------------+--------------------------------------------
Changes (by valentinbora):

 * Attachment "valentinbora-48082-parentheses.diff" added.

 This patch simply removes extraneous parentheses upon @desrosj's patch
 [attachment:48082.diff] per @netweb's suggestion

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


More information about the wp-trac mailing list