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:
Jonathan Desrosiers
2019-08-22 19:07:57 +00:00
parent 5a47302c35
commit 0847b67b13
6 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -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 );
}
}
}