bamcclendon on "[Plugin: Genesis Featured Page Advanced] Keeps deactivating"

ساخت وبلاگ

Good moing bamcclendon,

I just setup a test site with all the plugins you listed and am going to try and see what is causing GFPA to deactivate. In the meantime, you can delete the snippet of code that runs the deactivation.

To remove this piece of code, go to your Plugins page in the backend. Navigate to Genesis Featured Page Advanced and click on the little "Edit" button. On the following screen, scroll down in the text box until you find the following:

add_action( 'admin_init', 'fpa_deactivate_check' );
/** * This function runs on admin_init and checks to make sure Genesis is active, if not, it * deactivates the plugin. This is useful for when users switch to a non-Genesis themes. */
function fpa_deactivate_check() { if ( ! function_exists('genesis_pre') ) { deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate plugin }
}

Delete all of this, and ONLY this. This is a temporary solution, but you "should" no longer have any deactivation issues. Please let me know either way though. If this solves it, then there is an issue with this deactivation trigger. If the plugin deactivates even after this, then something really bizarre is going on!

Nick

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

برچسب : نویسنده : استخدام کار wpss بازدید : 202 تاريخ : يکشنبه 13 تير 1395 ساعت: 3:00