[buddypress-trac] [BuddyPress Trac] #5702: __DIR__ predefined constant in gruntified trunk loader

buddypress-trac noreply at wordpress.org
Sun Jun 15 13:45:44 UTC 2014


#5702: __DIR__  predefined constant in gruntified trunk loader
------------------------------+---------------------
 Reporter:  imath             |       Owner:  imath
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  2.1
Component:  Core              |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------
Changes (by imath):

 * owner:   => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"8523"]:
 {{{
 #!CommitTicketReference repository="" revision="8523"
 Use dirname( __FILE__ ) instead of __DIR__ in trunk loader file

 As WordPress minimum PHP required version is 5.2.4 and __DIR__ was
 introduced in 5.3, we need to use dirname( __FILE__ ) so that people can
 use the trunk version of BuddyPress if their PHP version is lower than
 5.3.

 props hnla, boonebgorges

 Fixes #5702
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5702#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list