conflict with AJAX due to PHP warning
-
This could be the source of other bugs reported here.
We are getting a debug warning that breaks AJAX responses, even though WP_DEBUG is off. Here is a fix:
* Updated to use the fix suggested here: https://www.ads-software.com/support/topic/warning-while-using-wp-cli *
Version: 1.1, file jp-rm-jpmenu.php, line 36:
add_action( 'admin_init', 'jp_rm_menu' );
Change to:
add_action( 'admin_menu', 'jp_rm_menu' );
The error we are seeing is in remove_menu_page():
<b>Warning</b>: Invalid argument supplied for foreach() in <b>.../wp-admin/includes/plugin.php</b> on line <b>1375</b><br />
https://www.ads-software.com/plugins/jetpack-only-for-admins/
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘conflict with AJAX due to PHP warning’ is closed to new replies.