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

    r33067 r33734  
    9393            $trashed = $locked = 0;
    9494
    95             foreach( (array) $post_ids as $post_id ) {
     95            foreach ( (array) $post_ids as $post_id ) {
    9696                if ( !current_user_can( 'delete_post', $post_id) )
    9797                    wp_die( __('You are not allowed to move this item to the Trash.') );
     
    112112        case 'untrash':
    113113            $untrashed = 0;
    114             foreach( (array) $post_ids as $post_id ) {
     114            foreach ( (array) $post_ids as $post_id ) {
    115115                if ( !current_user_can( 'delete_post', $post_id) )
    116116                    wp_die( __('You are not allowed to restore this item from the Trash.') );
     
    125125        case 'delete':
    126126            $deleted = 0;
    127             foreach( (array) $post_ids as $post_id ) {
     127            foreach ( (array) $post_ids as $post_id ) {
    128128                $post_del = get_post($post_id);
    129129
Note: See TracChangeset for help on using the changeset viewer.