shahzad11 on "[Plugin: Magic WP Coupons - Lite] plugin is not compatible to the latest version of wordpress"

ساخت وبلاگ

After the recent update of wordpress, my site was clashed with the magic coupon plugin, please update the plugin to be wordpress 4.5 compatible.

https://wordpress.org/plugins/magic-wp-coupons/

Roberto Villarreal
Member
Posted 5 days ago #

If you are having the same issue as me, this is caused by the fact that get_currentuserinfo() is deprecated in 4.5 and has been moved to pluggable-deprecated.php

The fix is to edit admin/includes/data_options.php

Need to change:

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

to:

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

el terrible bmw
Member
Posted 2 days ago #

I just commented out this line get_currentuserinfo(); line in admin/includes/data_options.php like this:

//get_currentuserinfo();

I'm not sure what that's used for but hopefully plugin author will fix it. Also what Roberto Villerreal wrote didn't fix mine, I still got various auth and cookie errors. plus it sounds like that function is deprecated so the plugin will need to be fixed not to use any deprecated elements.

shahzad11
Member
Plugin Author

Posted 6 minutes ago #

Thank you guys for that precious sharing. We have launched Magic WP Coupons 3.0. That issue is fixed in that new version.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 82 تاريخ : چهارشنبه 1 ارديبهشت 1395 ساعت: 5:14