[wp-trac] Re: [WordPress Trac] #4212: Use require_ and include_once instead in wp-settings.php

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 30 08:22:00 GMT 2007


#4212: Use require_ and include_once instead in wp-settings.php
-----------------------------------+----------------------------------------
 Reporter:  rob1n                  |        Owner:     
     Type:  enhancement            |       Status:  new
 Priority:  low                    |    Milestone:  2.5
Component:  Optimization           |      Version:     
 Severity:  minor                  |   Resolution:     
 Keywords:  has-patch 2nd-opinion  |  
-----------------------------------+----------------------------------------
Comment (by darkdragon):

 There is no need to profile. {{{require_once()}}} and {{{include_once()}}}
 are slower than {{{require()}}} and {{{include()}}} up to PHP version
 either 5.1.x or 5.2.x. Since you support PHP 4.2, you'll being slowing
 !WordPress down for what might be a majority of your users.

 Also, I haven't yet had any problems with what you describe. Do you
 witness any plugins that require certain wp-includes files? I would just
 assume that unless someone else messed up that the files wouldn't need to
 use require.

 It should be assumed that wp-settings sets up and includes the files in
 wp-includes and no one else should do so.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4212#comment:7>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list