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/network/site-themes.php

    r33641 r33734  
    9797                $action = 'enabled';
    9898                $n = count( $themes );
    99                 foreach( (array) $themes as $theme )
     99                foreach ( (array) $themes as $theme )
    100100                    $allowed_themes[ $theme ] = true;
    101101            } else {
     
    110110                $action = 'disabled';
    111111                $n = count( $themes );
    112                 foreach( (array) $themes as $theme )
     112                foreach ( (array) $themes as $theme )
    113113                    unset( $allowed_themes[ $theme ] );
    114114            } else {
Note: See TracChangeset for help on using the changeset viewer.