Multiple Post Thumbnails
A few minor PHP code cleanups (2 posts)

  1. Geert De Deckere
    Posted 4 years ago #

    The MultiPostThumbnails::has_post_thumbnail method should return a boolean (similar to has_post_thumbnail). Currently an integer is returned instead of boolean TRUE. Easy fix: just cast the return value to boolean.

    The third argument of MultiPostThumbnails::get_post_thumbnail_id requires a post ID. I suggest to make it optional, just as done in the MultiPostThumbnails::has_post_thumbnail method, falling back to get_the_ID().

    Hope you appreciate this kind of feedback. ;-)

    Thanks for the plugin, Chris!


  2. Gobbles
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Multiple Post Thumbnails
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic