[wp-trac] [WordPress Trac] #20523: Disable autoloader when using class_exists()
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 23 10:08:33 UTC 2012
#20523: Disable autoloader when using class_exists()
-------------------------------+-----------------------------
Reporter: michael.heuberger | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.3.1
Severity: normal | Keywords:
-------------------------------+-----------------------------
A couple of files inside the /wp-includes/pomo directory use
class_exists() the wrong way, for example in /wp-includes/pomo/entry.php :
{{{
if ( !class_exists( 'Translation_Entry') ):
}}}
It should be:
{{{
if ( !class_exists( 'Translation_Entry', false) ):
}}}
The second parameter 'false' disables autoloading. This is important
because I'm integrating some WP functions into another existing website
which already comes with an Autoloader for some classes = confusion.
This should be easy to fix. Thanks :)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20523>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list