mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
Coding Standards: Dynamic hooks should be named using interpolation not concatenation.
Props arena, desrosj. Fixes #47052. git-svn-id: https://develop.svn.wordpress.org/trunk@45881 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -357,7 +357,7 @@ function wp_plugin_update_rows() {
|
||||
if ( isset( $plugins->response ) && is_array( $plugins->response ) ) {
|
||||
$plugins = array_keys( $plugins->response );
|
||||
foreach ( $plugins as $plugin_file ) {
|
||||
add_action( "after_plugin_row_$plugin_file", 'wp_plugin_update_row', 10, 2 );
|
||||
add_action( "after_plugin_row_{$plugin_file}", 'wp_plugin_update_row', 10, 2 );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -545,7 +545,7 @@ function wp_theme_update_rows() {
|
||||
$themes = array_keys( $themes->response );
|
||||
|
||||
foreach ( $themes as $theme ) {
|
||||
add_action( "after_theme_row_$theme", 'wp_theme_update_row', 10, 2 );
|
||||
add_action( "after_theme_row_{$theme}", 'wp_theme_update_row', 10, 2 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user