Make WordPress Core


Ignore:
Timestamp:
08/25/2015 08:27:56 PM (9 years ago)
Author:
wonderboymusic
Message:

foreach is a statement, not a function.

See #33491.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update.php

    r33100 r33734  
    289289    if ( isset($plugins->response) && is_array($plugins->response) ) {
    290290        $plugins = array_keys( $plugins->response );
    291         foreach( $plugins as $plugin_file ) {
     291        foreach ( $plugins as $plugin_file ) {
    292292            add_action( "after_plugin_row_$plugin_file", 'wp_plugin_update_row', 10, 2 );
    293293        }
     
    402402        $themes = array_keys( $themes->response );
    403403
    404         foreach( $themes as $theme ) {
     404        foreach ( $themes as $theme ) {
    405405            add_action( "after_theme_row_$theme", 'wp_theme_update_row', 10, 2 );
    406406        }
Note: See TracChangeset for help on using the changeset viewer.