Closed GaryJones closed 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.
global $post
get_the_ID()
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 ofget_the_ID()
, which then lets WP handle the population of the global if it's empty etc.