Skip to content

Commit

Permalink
Change PHP keywords to comply with PSR2
Browse files Browse the repository at this point in the history
Signed-off-by: CodeLingoBot <[email protected]>
  • Loading branch information
CodeLingoBot committed Apr 15, 2019
1 parent 1bcb800 commit 575dfe9
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 575dfe9

Please sign in to comment.