You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improper usage of add_action to update plugin action links #646
This bug was spotted while doing static test for issue #622.
add_action( 'plugin_action_links_' . plugin_basename( PERFLAB_MAIN_FILE ), 'perflab_plugin_action_links_add_settings' );
used within function perflab_add_modules_page() inside admin/load.php ( line ), calls perflab_plugin_action_links_add_settings which only add a new link to existing links.
The code currently works because of the usage of array_unshift which updates reference array.
Steps to reproduce
Go to 'admin/load.php'
Scroll down to 'function perflab_add_modules_page()'
See error in the add_action( 'plugin_action_links_...
Activity