[wpmu-trac] [WordPress MU Trac] #439: Request to Make
wpmu-functions.php::wp_login() Overridable
WordPress MU Trac
wpmu-trac at lists.automattic.com
Wed Oct 10 18:13:12 GMT 2007
#439: Request to Make wpmu-functions.php::wp_login() Overridable
-------------------------+--------------------------------------------------
Reporter: seanwedig | Owner: somebody
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: component1 | Version:
Severity: major | Keywords:
-------------------------+--------------------------------------------------
I would like to request the functionality to override {{{wpmu-
functions.php::wp_login()}}} in mu-plugins, so as to allow alternate
authentication via site-wide plugins. This is tangentially related to the
old ticket #137.
This is to allow mu-plugins to override the {{{wp_login()}}} function if
handling their own authentication method. In specific, I'm referring to
the LDAP Authentication plugin, which is used by a variety of Universities
and Colleges for authentication with their WPMU installations.
Previously (i.e., before 1.2.5a) this was possible by modifying {{{/wp-
content/mu-plugins/pluggable.php}}} to simply add conditional {{{if
(!function_exists('wp_login') ):}}} calls around {{{wp_login()}}}. This
is no longer possible, since the code for pluggable.php has moved into
{{{/wp-includes/wpmu-functions.php}}}.
Even if the {{{function_exists()}}} hack is employed, {{{/wp-includes
/wpmu-functions.php}}} is loaded before any mu-plugins are, and so
wp_login is not overriden via the hack.
If there were some other means of overriding the method to maintain the
plugin architecture, that would be great.
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/439>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list