Changeset 34480
- Timestamp:
- 09/24/2015 04:37:48 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-thumbnail-template.php
r34373 r34480 180 180 * @param string|array $size Optional. Registered image size to retrieve the source for or a flat 181 181 * array of height and width dimensions. Default 'post-thumbnail'. 182 * @return string Post thumbnail URL or empty string.182 * @return string|false Post thumbnail URL or false if no URL is available. 183 183 */ 184 184 function get_the_post_thumbnail_url( $post = null, $size = 'post-thumbnail' ) { 185 185 $image = wp_get_attachment_image_url( get_post_thumbnail_id( $post ), $size ); 186 return isset( $image ) ? $image : '';186 return isset( $image ) ? $image : false; 187 187 } 188 188
Note: See TracChangeset
for help on using the changeset viewer.