WordPress.org

Ready to get started?Download WordPress

Forums

Login With Ajax
[resolved] Login with Ajax breaks plugin architecture (5 posts)

  1. radiok
    Member
    Posted 3 years ago #

    On line 489 of login-with-ajax.php you include pluggable.php, pluggable should not be loaded until all other plugins are loaded. By doing this your plugin breaks subsequent plugins that attempt to modify pluggable functions. Can you explain why you did? I'm sure there's a valid reason and I'd like to help you resolve it, several of my users wish to use both your plugin and mine, but right now, must choose between one or the other.

    http://wordpress.org/extend/plugins/login-with-ajax/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    Hi, actually I'm loading a pluggable.php file which is within my plugin, not the one in wp-includes. This is named that way as I do overwrite one function in the original pluggable.php file, wp_new_user_notification. I think that's what's messing stuff up as I bet yours tries to do the same.

    Ideally we'd do it with a hook/filter, I can't remember why I did this now (I'm hoping to sort this asap when time permits) but if you have another suggestion I'm open to them :)

  3. radiok
    Member
    Posted 3 years ago #

    OK, interesting, yeah, I am using the same function. I do use the same function so the effect is the same. Since your plugin also modifies the message sent out following user registration I will simply tell my users they have to use one plugin or the other. Thank you for your timely response!

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    Hold off on that (or say temporarily it's not compatible), let me see what I can do.

    I might have time to look at this even today and fix a few other pending bugs. Since user notifications are an optional thing on lwa, I just need to make sure my pluggable.php is not loaded.

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    this has been sorted in 3.0b3

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic