bradyvercher / gistpress

WordPress plugin to add Gist oEmbed and shortcode support with caching.
GNU General Public License v2.0
143 stars 28 forks source link

Remove globals #44

Closed GaryJones closed 10 years ago

GaryJones commented 10 years ago

There are a couple of global $post in the main class, which are only used to access the post ID. These could be dropped in favour of get_the_ID(), which then lets WP handle the population of the global if it's empty etc.