• Hi, thanks for this great plugin!

    I find some compatibility problems for this plugin with plugin override functions in pluggable.php.

    To fix this issue, please call $mysubscribe2->s2init() only when plugins are all loaded

    add_action( 'plugins_loaded', array( $mysubscribe2, 's2init' ) );

    Also, remove

    if ( !function_exists('get_userdata') ) {
        require_once(ABSPATH . WPINC . '/pluggable.php');
    }

    from classes/class-s2-admin.php

    • This topic was modified 9 years, 8 months ago by sneezry.
    • This topic was modified 9 years, 8 months ago by sneezry.
    • This topic was modified 9 years, 8 months ago by sneezry.
Viewing 1 replies (of 1 total)
  • @sneezry

    This looks like a good suggestion to me and I’ll certainly adopt it for Subscribe2 HTML. Unfortunately I can’t make changes to Subscribe2 anymore so cannot update the free version.

Viewing 1 replies (of 1 total)

The topic ‘Avoid breaking pluggable function’ is closed to new replies.