[wp-trac] [WordPress Trac] #18951: A function to add default images for themes

WordPress Trac noreply at wordpress.org
Tue Oct 28 19:41:19 UTC 2014


#18951: A function to add default images for themes
-----------------------------+----------------------
 Reporter:  F J Kaiser       |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Themes           |     Version:  3.2.1
 Severity:  normal           |  Resolution:  wontfix
 Keywords:  has-patch        |     Focuses:
-----------------------------+----------------------
Changes (by johnbillion):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Future Release =>


Comment:

 I don't think this provides any real value.

 This is perfectly sufficient:

 {{{
 if ( has_post_thumbnail() ) {
     the_post_thumbnail();
 } else {
     echo '<img src="' . get_stylesheet_directory() . '/default.jpg">';
 }
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/18951#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list