foreach is a statement, not a function.
See #33491. Built from https://develop.svn.wordpress.org/trunk@33734 git-svn-id: http://core.svn.wordpress.org/trunk@33702 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -221,7 +221,7 @@ function _post_format_get_term( $term ) {
|
||||
function _post_format_get_terms( $terms, $taxonomies, $args ) {
|
||||
if ( in_array( 'post_format', (array) $taxonomies ) ) {
|
||||
if ( isset( $args['fields'] ) && 'names' == $args['fields'] ) {
|
||||
foreach( $terms as $order => $name ) {
|
||||
foreach ( $terms as $order => $name ) {
|
||||
$terms[$order] = get_post_format_string( str_replace( 'post-format-', '', $name ) );
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user