mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 18:37:58 +01:00
Fix order of in_array() parameters. props lancewillett. see #23570.
git-svn-id: http://core.svn.wordpress.org/trunk@23789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cab1999ed9
commit
b4dbe1907d
@ -446,7 +446,7 @@ function get_the_url( $id = 0 ) {
|
|||||||
if ( empty( $post ) )
|
if ( empty( $post ) )
|
||||||
return '';
|
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 );
|
$meta = get_post_format_meta( $post->ID );
|
||||||
if ( ! empty( $meta['url'] ) )
|
if ( ! empty( $meta['url'] ) )
|
||||||
return apply_filters( 'get_the_url', esc_url_raw( $meta['url'] ), $post );
|
return apply_filters( 'get_the_url', esc_url_raw( $meta['url'] ), $post );
|
||||||
|
Loading…
Reference in New Issue
Block a user