[Plugin: SexyBookmarks] function get_sexy over-rides global $post variable
-
I was trying to debug a problem on my site which is using the Tabbed Sidebar Widget of the Arras theme and I tracked it down to the SexyBookmarks plugin.
It appears that the function get_sexy in includes/public.php over-rides the global $post variable:
function get_sexy() { global $shrsb_plugopts, $wp_query, $post; $post = $wp_query->post;
You can clearly see from the lines above that $post is not local in this function and that it is being over-ridden.
This messes with other plugins and widgets which perform their own queries.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: SexyBookmarks] function get_sexy over-rides global $post variable’ is closed to new replies.