Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions multi-post-thumbnails.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,9 @@ public static function the_post_thumbnail($post_type, $thumb_id, $post_id = null
* @param bool $link_to_original Optional. Wrap link to original image around thumbnail?
* @param string|array $attr Optional. Query string or array of attributes.
*/
public static function get_the_post_thumbnail($post_type, $thumb_id, $post_id = NULL, $size = 'post-thumbnail', $attr = '' , $link_to_original = false) {
public static function get_the_post_thumbnail($post_type, $thumb_id, $post_id = null, $size = 'post-thumbnail', $attr = '' , $link_to_original = false) {
global $id;
$post_id = (NULL === $post_id) ? get_the_ID() : $post_id;
$post_id = (null === $post_id) ? get_the_ID() : $post_id;
$post_thumbnail_id = self::get_post_thumbnail_id($post_type, $thumb_id, $post_id);
$size = apply_filters("{$post_type}_{$post_id}_thumbnail_size", $size);
if ($post_thumbnail_id) {
Expand Down