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
This commit is contained in:
parent
28b36ea5cd
commit
6cf433a314
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue