Bug Description
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_...
Screenshots
Additional Context
- PHP Version:
- OS: [e.g. iOS]
- Browser: [e.g. chrome, safari]
- Plugin Version: [e.g. 22]
- Device: [e.g. iPhone6]
Bug Description
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()insideadmin/load.php( line ), callsperflab_plugin_action_links_add_settingswhich only add a new link to existing links.The code currently works because of the usage of
array_unshiftwhich updates reference array.Steps to reproduce
add_action( 'plugin_action_links_...Screenshots
Additional Context