diff --git a/wp-admin/edit.php b/wp-admin/edit.php index 6c285d78ec..c9ef3b57cd 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -92,7 +92,7 @@ if ( $doaction ) { case 'trash': $trashed = $locked = 0; - foreach( (array) $post_ids as $post_id ) { + foreach ( (array) $post_ids as $post_id ) { if ( !current_user_can( 'delete_post', $post_id) ) wp_die( __('You are not allowed to move this item to the Trash.') ); @@ -111,7 +111,7 @@ if ( $doaction ) { break; case 'untrash': $untrashed = 0; - foreach( (array) $post_ids as $post_id ) { + foreach ( (array) $post_ids as $post_id ) { if ( !current_user_can( 'delete_post', $post_id) ) wp_die( __('You are not allowed to restore this item from the Trash.') ); @@ -124,7 +124,7 @@ if ( $doaction ) { break; case 'delete': $deleted = 0; - foreach( (array) $post_ids as $post_id ) { + foreach ( (array) $post_ids as $post_id ) { $post_del = get_post($post_id); if ( !current_user_can( 'delete_post', $post_id ) ) diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index 5d1edecfbc..8015e628cd 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -868,7 +868,7 @@ class WP_List_Table { // We need a primary defined so responsive views show something, // so let's fall back to the first non-checkbox column. - foreach( $columns as $col => $column_name ) { + foreach ( $columns as $col => $column_name ) { if ( 'cb' === $col ) { continue; } diff --git a/wp-admin/includes/class-wp-press-this.php b/wp-admin/includes/class-wp-press-this.php index 58ed28661a..b1b7138c41 100644 --- a/wp-admin/includes/class-wp-press-this.php +++ b/wp-admin/includes/class-wp-press-this.php @@ -984,7 +984,7 @@ class WP_Press_This { } if ( ! empty( $data['_embeds'] ) ) { - foreach( $data['_embeds'] as $src ) { + foreach ( $data['_embeds'] as $src ) { $prot_relative_src = preg_replace( '/^https?:/', '', $src ); if ( in_array( $prot_relative_src, $this->embeds ) ) { @@ -1012,7 +1012,7 @@ class WP_Press_This { $selected_images = array(); if ( ! empty( $data['_images'] ) ) { - foreach( $data['_images'] as $src ) { + foreach ( $data['_images'] as $src ) { if ( false !== strpos( $src, 'gravatar.com' ) ) { $src = preg_replace( '%http://[\d]+\.gravatar\.com/%', 'https://secure.gravatar.com/', $src ); } diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 49fcdd926b..9c7ac5b8ab 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -1069,7 +1069,7 @@ function wp_dashboard_primary() { * @param array $feeds Array of RSS feeds. */ function wp_dashboard_primary_output( $widget_id, $feeds ) { - foreach( $feeds as $type => $args ) { + foreach ( $feeds as $type => $args ) { $args['type'] = $type; echo '