[wp-trac] [WordPress Trac] #20298: Change requires to require_once
WordPress Trac
wp-trac at lists.automattic.com
Sun Mar 25 19:39:12 UTC 2012
#20298: Change requires to require_once
-------------------------+------------------------------
Reporter: pp3345 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.3.1
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by pp3345):
A quick look in Zend/PHPs source shows that running a require_once()
instead of a require() doesn't really run a lot more code, only a few more
lines. I don't think it would make a remarkable (probably not even a
measurable) difference in performance, but the code would still be cleaner
and you could be sure that a file doesn't get included twice by mistake.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20298#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list