WordPress.org

Ready to get started?Download WordPress

Forums

WP Editor
advanced-cache.php conflict error? (3 posts)

  1. Rancel
    Member
    Posted 10 months ago #

    I have this warning in plugins Drop-ins section.
    Warning: Invalid argument supplied for foreach() in /home/content/88/11194688/html/PrimarySite/wp-admin/includes/class-wp-list-table.php on line 344

    http://wordpress.org/plugins/wp-editor/

  2. hahimwayeal
    Member
    Posted 9 months ago #

    I was able to fix this error by adding these lines:

    if( isset( $_REQUEST['plugin_status'] ) && in_array( $_REQUEST['plugin_status'], array('mustuse', 'dropins') ) ) {
    $data = $links;
    }
    else if(WPEditorSetting::getValue('replace_plugin_edit_links') == 1) {

    in place of

    if(WPEditorSetting::getValue('replace_plugin_edit_links') == 1) {

    in WPEditor.php line 252.
    I took a piece of code from class-wp-list-table.php line 21 and made it so that only mustuse and dropins would not have their plugin lists edited by WP-Editor.

  3. benjaminprojas
    Member
    Plugin Author

    Posted 8 months ago #

    Thanks hahimwayeal,

    I will try to have a fix for this in the next release of WP Editor.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.