' . $linkcat->name . '
';
$result.= gdk_get_the_link_items($linkcat->term_id);
diff --git a/functions/rewrite.php b/functions/rewrite.php
index a5206de..781cc45 100644
--- a/functions/rewrite.php
+++ b/functions/rewrite.php
@@ -49,7 +49,10 @@ add_filter( 'redirect_canonical', 'gdk_custom_cancel_redirect' );
//自定义路由参数,GO跳转和dl下载
function gdk_public_query_vars($public_query_vars){
- array_push($public_query_vars, 'go','dl','sitemap','daohang');
+ $public_query_vars[] = 'go';
+ $public_query_vars[] = 'dl';
+ $public_query_vars[] = 'sitemap';
+ $public_query_vars[] = 'daohang';
return $public_query_vars;
}
add_action('query_vars', 'gdk_public_query_vars');
diff --git a/public/daohang.php b/public/daohang.php
index dba06a9..99eda52 100644
--- a/public/daohang.php
+++ b/public/daohang.php
@@ -3,7 +3,6 @@
* SiteMap HTML 版
*/
-
function gdk_daohang_html_api_handlers( $template ){
$hook = explode('-', get_query_var( 'daohang' ) );
if( isset( $hook[0] ) && $hook[0] === 'gdkk' ){
@@ -21,7 +20,6 @@ function gdk_daohang_html_api_handlers( $template ){
$daohang = gdk_create_html_daohang();
set_transient( 'gdk-daohang-html', $daohang );
}
- //header("Content-type: text/html");
$daohang;
return;
}
@@ -38,12 +36,12 @@ function gdk_create_html_daohang() {
-
创造狮 创意工作者导航
+ 网址导航 -
@@ -94,8 +92,7 @@ function gdk_create_html_daohang() {