foreach is a statement, not a function.
See #33491. Built from https://develop.svn.wordpress.org/trunk@33734 git-svn-id: http://core.svn.wordpress.org/trunk@33702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -288,7 +288,7 @@ function wp_plugin_update_rows() {
|
||||
$plugins = get_site_transient( 'update_plugins' );
|
||||
if ( isset($plugins->response) && is_array($plugins->response) ) {
|
||||
$plugins = array_keys( $plugins->response );
|
||||
foreach( $plugins as $plugin_file ) {
|
||||
foreach ( $plugins as $plugin_file ) {
|
||||
add_action( "after_plugin_row_$plugin_file", 'wp_plugin_update_row', 10, 2 );
|
||||
}
|
||||
}
|
||||
@@ -401,7 +401,7 @@ function wp_theme_update_rows() {
|
||||
if ( isset($themes->response) && is_array($themes->response) ) {
|
||||
$themes = array_keys( $themes->response );
|
||||
|
||||
foreach( $themes as $theme ) {
|
||||
foreach ( $themes as $theme ) {
|
||||
add_action( "after_theme_row_$theme", 'wp_theme_update_row', 10, 2 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user