[wp-trac] [WordPress Trac] #23945: get_the_post_format_image doesn't use specificed image size

WordPress Trac noreply at wordpress.org
Fri Apr 5 18:21:36 UTC 2013


#23945: get_the_post_format_image doesn't use specificed image size
-----------------------------+--------------------
 Reporter:  davidwilliamson  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  3.6
Component:  Post Formats     |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+--------------------

Comment (by davidwilliamson):

 attachment:23945.2.diff replaces the `if ( isset( $post->format_content )
 )` with a check to see if the image already contained in
 `$post->format_content` is the same size as what is being requested. I
 believe this more closely follows the original intent of the check for
 whether `$post->format_content` is set rather than just deleting it all
 together.

 There may be a better way to check whether the image already contained in
 `$post->format_content` is the appropriate size but I'm not sure how.
 There also may very well be a better regex to use when checking, I am not
 very experienced with regular expressions.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23945#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list