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/post-formats.php

    r32616 r33734  
    222222    if ( in_array( 'post_format', (array) $taxonomies ) ) {
    223223        if ( isset( $args['fields'] ) && 'names' == $args['fields'] ) {
    224             foreach( $terms as $order => $name ) {
     224            foreach ( $terms as $order => $name ) {
    225225                $terms[$order] = get_post_format_string( str_replace( 'post-format-', '', $name ) );
    226226            }
Note: See TracChangeset for help on using the changeset viewer.