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-includes/class-wp-xmlrpc-server.php

    r33700 r33734  
    29492949
    29502950        if ( $all_tags = get_tags() ) {
    2951             foreach( (array) $all_tags as $tag ) {
     2951            foreach ( (array) $all_tags as $tag ) {
    29522952                $struct = array();
    29532953                $struct['tag_id']           = $tag->term_id;
     
    40494049        $struct = array();
    40504050
    4051         foreach( $post_types as $post_type ) {
     4051        foreach ( $post_types as $post_type ) {
    40524052            if ( ! current_user_can( $post_type->cap->edit_posts ) )
    40534053                continue;
     
    53685368            $categories = array();
    53695369            $catids = wp_get_post_categories($post_ID);
    5370             foreach($catids as $catid)
     5370            foreach ($catids as $catid)
    53715371                $categories[] = get_cat_name($catid);
    53725372
     
    55075507            $categories = array();
    55085508            $catids = wp_get_post_categories($entry['ID']);
    5509             foreach( $catids as $catid )
     5509            foreach ( $catids as $catid )
    55105510                $categories[] = get_cat_name($catid);
    55115511
Note: See TracChangeset for help on using the changeset viewer.