Changeset 23775
- Timestamp:
- 03/22/2013 07:28:56 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-formats.php
r23773 r23775 399 399 * 400 400 * @param string $content A string which might contain a URL. 401 * @param boolean $remove Whether t heremove the found URL from the passed content.401 * @param boolean $remove Whether to remove the found URL from the passed content. 402 402 * @return string The found URL. 403 403 */ … … 447 447 return ''; 448 448 449 if ( has_post_format( 'link', $post) ) {449 if ( in_array( get_post_format( $post->ID, array( 'link', 'quote' ) ) ) ) { 450 450 $meta = get_post_format_meta( $post->ID ); 451 451 if ( ! empty( $meta['url'] ) ) 452 return esc_url_raw( $meta['url']);452 return apply_filters( 'get_the_url', esc_url_raw( $meta['url'] ), $post ); 453 453 } 454 454 455 455 if ( ! empty( $post->post_content ) ) 456 return get_content_url( $post->post_content );456 return apply_filters( 'get_the_url', get_content_url( $post->post_content ), $post ); 457 457 } 458 458
Note: See TracChangeset
for help on using the changeset viewer.