[Bb-trac] [bbPress] #670: Activating plugins that rewrite pluggable
functions fails.
bbPress
bb-trac at lists.bbpress.org
Fri Jun 22 02:12:39 GMT 2007
#670: Activating plugins that rewrite pluggable functions fails.
----------------------------+-----------------------------------------------
Reporter: sambauers | Owner:
Type: defect | Status: new
Priority: high | Milestone: 0.8.3 & XML-RPC
Component: Administration | Version: 1.0-alpha (trunk)
Severity: major | Keywords:
----------------------------+-----------------------------------------------
If a plugin unconditionally redeclares a function from bb-
includes/pluggable.php it cannot be activated from the plugin manager.
Plugins normally load before pluggable.php is included, but when the
plugin is activated it is loaded after pluggable.php.
The workaround is to define the function inside the plugin conditionally
like so:
{{{
if (!function_exists('bb_auth')) {
function bb_auth() {
// This function doesn't do anything
}
}
}}}
But that isn't ideal.
Test plugin with reduction attached.
--
Ticket URL: <http://trac.bbpress.org/ticket/670>
bbPress <http://bbpress.org/>
Innovative forum development
More information about the Bb-trac
mailing list