• Resolved Gagan Deep Singh

    (@gagan0123)


    It took me some time to figure out why other plugins which were using pluggable functions (eg Postmarkapp Plugin), stopped working as soon as this plugin is enabled.

    Turns out that there’s this code in the plugin:

    if(!function_exists('wp_get_current_user')) {
        include(ABSPATH . "wp-includes/pluggable.php"); 
    }

    which includes the wp-includes/pluggable.php before it should have been included.

    After further reviewing the code I found that the reason it is done is because the plugin is trying to check whether the user can or cannot activate a plugin, after which it decides whether to load or not load the activation function but this isn’t needed, because activation hook is called only when a user can activate the plugin and does so.

    I hope it will get fixed soon. If you want I can help you out with the code.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issues with other plugins using pluggable functions’ is closed to new replies.