Use of query_vars showing all blogs posts
-
The use of query_vars for passing of vscf parameters is querying and returning all blog posts on my installation when a vscf form is submitted. The use of query_vars is inherently global and vscf vars aren’t required for the main WP_Query, so it’s not entirely appropriate to use them inside query_vars.
My workaround is to comment out // add_filter( ‘query_vars’, ‘vscf_add_query_vars_filter’ ); in vscf.php.
Then at the end of function vscf_shortcode, change get_query_var(‘vscfsp’) || get_query_var(‘vscfep’) to… isset($_GET[‘vscfsp’]) || isset($_GET[‘vscfep’])
This isn’t perfect, but hopefully this bug can be fixed in a similar way before the next release?
The topic ‘Use of query_vars showing all blogs posts’ is closed to new replies.