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:
Ryan Boren
2004-12-04 00:12:08 +00:00
parent 00b4d22860
commit 8629ed18c3
3 changed files with 36 additions and 14 deletions

View File

@@ -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);
}
?>