When testing [bw_plug option=’active_plugins’] the Warning: array_merge() message was issued for the plugin called wpdb-alt.
Expected output
Display of the plugin without any messages with "No info available" in the Plugin links.
Actual output:
Warning: array_merge(): Argument #2 is not an array in
\oik-bob-bing-wide\shortcodes\oik-plug.php on line 406
Explanation
wpdb-alt.php is a plugin I developed to work with an "Alternative database" ( on 27th March 2017) in order to be able to locally reconcile the post content in two versions of the same website.
It was developed to work in batch mode only.
It has a plugin header
It doesn't have a readme.txt file
So bw_get_readme_data() returns null
and array_merge() returns null
Proposed solution
Don't call array_merge when bw_get_readme_data() returns null.
We should then expect some information to be displayed....
but it's not working yet.
When testing
[bw_plug option=’active_plugins’]
the Warning: array_merge() message was issued for the plugin called wpdb-alt.Expected output
Display of the plugin without any messages with "No info available" in the Plugin links.
Actual output:
Warning: array_merge(): Argument #2 is not an array in \oik-bob-bing-wide\shortcodes\oik-plug.php on line 406
Explanation
Proposed solution
Don't call array_merge when bw_get_readme_data() returns null. We should then expect some information to be displayed.... but it's not working yet.