From 6cf433a314b2fa4d9681fe0b2c5b864762008e2e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 22 Mar 2013 18:58:55 +0000 Subject: [PATCH] Fix order of in_array() parameters. props lancewillett. see #23570. git-svn-id: https://develop.svn.wordpress.org/trunk@23789 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/post-formats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post-formats.php b/wp-includes/post-formats.php index 39eaa1a645..ec68932745 100644 --- a/wp-includes/post-formats.php +++ b/wp-includes/post-formats.php @@ -446,7 +446,7 @@ function get_the_url( $id = 0 ) { if ( empty( $post ) ) return ''; - if ( in_array( get_post_format( $post->ID, array( 'link', 'quote' ) ) ) ) { + if ( in_array( get_post_format( $post->ID ), array( 'link', 'quote' ) ) ) { $meta = get_post_format_meta( $post->ID ); if ( ! empty( $meta['url'] ) ) return apply_filters( 'get_the_url', esc_url_raw( $meta['url'] ), $post );