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/media.php

    r33670 r33734  
    12401240
    12411241    // Merge default fields with their errors, so any key passed with the error (e.g. 'error', 'helps', 'value') will replace the default
    1242     // The recursive merge is easily traversed with array casting: foreach( (array) $things as $thing )
     1242    // The recursive merge is easily traversed with array casting: foreach ( (array) $things as $thing )
    12431243    $form_fields = array_merge_recursive($form_fields, (array) $errors);
    12441244
     
    16281628
    16291629    // Merge default fields with their errors, so any key passed with the error (e.g. 'error', 'helps', 'value') will replace the default
    1630     // The recursive merge is easily traversed with array casting: foreach( (array) $things as $thing )
     1630    // The recursive merge is easily traversed with array casting: foreach ( (array) $things as $thing )
    16311631    $form_fields = array_merge_recursive($form_fields, (array) $args['errors'] );
    16321632
Note: See TracChangeset for help on using the changeset viewer.