From 2fd3b0fa55c5a8973cdc8092b98b7b2bcd21d6ae Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 18 Apr 2013 00:40:36 +0000 Subject: [PATCH] Rename some variables for consistency. Remove redundant absint() call. see #24010. git-svn-id: https://develop.svn.wordpress.org/trunk@24024 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/post-formats.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/post-formats.php b/wp-admin/includes/post-formats.php index 2db8b18699..630444689d 100644 --- a/wp-admin/includes/post-formats.php +++ b/wp-admin/includes/post-formats.php @@ -26,9 +26,8 @@ $format_meta = get_post_format_meta( $post_ID );
', esc_url( $image ), get_the_title( $format_meta['image'] ) ); + $image = wp_get_attachment_url( $value ); + printf( '%s', esc_url( $image ), get_the_title( $value ) ); } elseif ( preg_match( '/' . get_shortcode_regex() . '/s', $value ) ) { echo do_shortcode( $value ); } elseif ( ! preg_match( '#<[^>]+>#', $value ) ) { @@ -77,8 +76,8 @@ $format_meta = get_post_format_meta( $post_ID );
]+>#', $value ) ) { @@ -115,8 +114,8 @@ $format_meta = get_post_format_meta( $post_ID );
]+>#', $value ) ) {