diff --git a/WordPress/Docs/WP/GlobalVariablesOverrideStandard.xml b/WordPress/Docs/WP/GlobalVariablesOverrideStandard.xml new file mode 100644 index 0000000000..e72f42aafc --- /dev/null +++ b/WordPress/Docs/WP/GlobalVariablesOverrideStandard.xml @@ -0,0 +1,32 @@ + + + + + + + + $my_query = new WP_Query( $args ); + + +$GLOBALS['my_data'] = "some data"; + ]]> + + + global $wp_query; +$wp_query = new WP_Query( $args ); + +$GLOBALS['wp_query'] = new WP_Query( $args ); + ]]> + + +