mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Improve plugin hooks for rewrite manipulation. Allow pluggable template redirection.
git-svn-id: https://develop.svn.wordpress.org/trunk@1910 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2056,4 +2056,13 @@ function add_query_arg() {
|
||||
function remove_query_arg($key, $query) {
|
||||
add_query_arg($key, '', $query);
|
||||
}
|
||||
|
||||
function load_template($file) {
|
||||
global $posts, $post, $wp_did_header, $wp_did_template_redirect, $wp_query,
|
||||
$wp_rewrite, $wpdb;
|
||||
|
||||
extract($wp_query->query_vars);
|
||||
|
||||
include($file);
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user