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

WordPress Trac noreply at wordpress.org
Thu Feb 6 21:49:26 UTC 2020

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

 * status:  reopened => closed
 * resolution:   => fixed


 In [changeset:"47201" 47201]:
 #!CommitTicketReference repository="" revision="47201"
 Tests: Revert the `dirname( __FILE__ )` replacement in `wp-tests-config-
 sample.php` for now, to avoid breaking unit tests created with WP-CLI
 `scaffold` command.

 Follow-up to [47198].

 Props kaggdesign, danielbachhuber, bwmarkle.
 Fixes #48082, #49377.

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

More information about the wp-trac mailing list