Ticket #439 (closed enhancement: fixed)

Opened 9 months ago

Last modified 9 months ago

Request to Make wpmu-functions.php::wp_login() Overridable

Reported by: seanwedig Assigned to: somebody
Priority: normal Milestone:
Component: component1 Version:
Severity: major Keywords:
Cc:

Description

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.

Change History

10/12/07 16:22:02 changed by donncha

  • status changed from new to closed.
  • resolution set to fixed.

THanks for pointing this out. should be fixed in [1069] but that's the new experimental WP2.3 merge so don't use it in production yet!