add forgotten default value for post_id in get_post_thumbnail_url

This commit is contained in:
Lukas Juhas 2017-01-17 12:25:58 +00:00
parent 61701f305b
commit d77707733f
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ add_filter('tiny_mce_before_init', 'barebones_tiny_mce_before_init');
* @param int $post_id post id * @param int $post_id post id
* @param boolean $icon if no image found, display icon * @param boolean $icon if no image found, display icon
*/ */
function get_post_thumbnail_url( $size = 'full', $post_id, $icon = false ) function get_post_thumbnail_url( $size = 'full', $post_id = false, $icon = false )
{ {
if(!$post_id) { if(!$post_id) {
$post_id = get_the_ID(); $post_id = get_the_ID();