WordPress.org

Make WordPress Core

Ticket #23570: 23570.6.diff

File 23570.6.diff, 577 bytes (added by lancewillett, 13 months ago)

Fix parameter order of in_array() call

  • wp-includes/post-formats.php

     
    446446        if ( empty( $post ) ) 
    447447                return ''; 
    448448 
    449         if ( in_array( get_post_format( $post->ID, array( 'link', 'quote' ) ) ) ) { 
     449        if ( in_array( get_post_format( $post->ID ), array( 'link', 'quote' ) ) ) { 
    450450                $meta = get_post_format_meta( $post->ID ); 
    451451                if ( ! empty( $meta['url'] ) ) 
    452452                        return apply_filters( 'get_the_url', esc_url_raw( $meta['url'] ), $post );