Hello,
while the error is (implicitly) triggered by MultilingualPress, there’s actually nothing wrong with the plugin code.
Mlp_Network_Plugin_Action_Link::add() hooks into the network_admin_plugin_action_links_{$plugin_file} filter, which is said to have an array as first argument (i.e., the according DocBlock says it’s an array, and WordPress itself only passes an array to the two apply_filters calls).
What version of WordPress are you using?
Maybe this is caused by another plugin…?
Kind regards,
Thorsten
interesting, I didn’t look into the error in detail, but happy to answer any questions.
I’m on WordPress 4.5.2
This happens even if I disable all other plugins. Also, I’m activating the plugin via WP CLI if that makes a difference
Also, the error only appears on /wp-admin/network/plugins.php?plugin_status=all&paged=1&s
Hi Paul,
Thorsten asked me to double-check this, but I also cannot reproduce the error here.
Tested with PHP 5.5, WP 4.5.2, MPL 2.4.2/3 and WP-Cli 0.23.1. Can you reproduce the error on a clean new WordPress installation with a default theme (Twenty*)?
Does anything (theme, drop-in, mu-plugin) in your setup maybe hook into the filter network_admin_plugin_action_links? (To test this, you could dump $GLOBALS[ 'wp_filter' ][ 'network_admin_plugin_action_links' ])
Kind regards
David
Thanks David
I tracked it down to a mu-plugin file, it is not related to Multilingual Press, as you suspected.
Here is the code , FYI
https://github.com/humanmade/hm-base/blob/master/content/plugins-mu/loader.php#L66
Regards
Paul
Hi Paul,
most probably obvious, but returning $actions in the first case will resolve this. 😉
Best regards,
Thorsten
Nice to see the problem solved.
Kind regards
David