[wp-trac] [WordPress Trac] #32274: Works faster that use __DIR__ instead of dirname(__FILE__) .

WordPress Trac noreply at wordpress.org
Sat May 28 08:37:05 UTC 2016


#32274: Works faster that use __DIR__ instead of dirname(__FILE__) .
-------------------------+--------------------------
 Reporter:  kmvan        |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  General      |     Version:
 Severity:  normal       |  Resolution:  maybelater
 Keywords:               |     Focuses:  performance
-------------------------+--------------------------

Comment (by nigro.simone):

 simple way for support old php version:

 {{{#!php
 <?php
 if( !defined('__DIR__ ') ){
     define('__DIR__ ', dirname(__FILE__));
 }
 }}}

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


More information about the wp-trac mailing list