{"id":322,"date":"2012-08-08T13:24:54","date_gmt":"2012-08-08T05:24:54","guid":{"rendered":"http:\/\/www.80.my\/?p=21"},"modified":"2012-08-08T13:24:54","modified_gmt":"2012-08-08T05:24:54","slug":"cn-tag","status":"publish","type":"post","link":"https:\/\/www.lnlog.cn\/index.php\/2012\/08\/08\/cn-tag\/","title":{"rendered":"\u89e3\u51b3WordPress\u6807\u7b7eTAG\u94fe\u63a5\u6253\u4e0d\u5f00"},"content":{"rendered":"<p>WordPress\u7684\u670b\u53cb\u90fd\u4f1a\u9047\u5230\u81ea\u5b9a\u4e49\u94fe\u63a5\u7684\u65f6\u5019tag\u94fe\u63a5\u4e0d\u80fd\u80fd\u6253\u5f00\uff0c\u8fd4\u56de404\u72b6\u6001\u3002\u56e0\u4e3aWordPress\u6682\u65f6\u4e0d\u652f\u6301\u4e2d\u6587\u7f16\u7801\uff0c\u90a3\u4e48\u5c31\u9700\u8981\u8ba9WordPress\u80fd\u652f\u6301\u4e2d\u6587\u7684\u7f16\u7801\u5f62\u5f0f\uff0c\u4e5f\u5c31\u662fUTF-8\u548cGBK\u7f16\u7801\u3002<br \/>\n\u5177\u4f53\u89e3\u51b3\u529e\u6cd5\u5982\u4e0b\uff1a<br \/>\n\u5728\u4f60\u535a\u5ba2\u7684\u8ddf\u76ee\u5f55\u4e0b\u7684wp-includes\u6587\u4ef6\u5939\u4e2d\u627e\u5230classes-wp.php\uff08\u65e9\u671f\u7684\u53ef\u80fd\u662fclasses.php\uff09\uff0c\u7136\u540e\u5728\u8fd9\u4e2a\u6587\u4ef6\u505a\u4ee5\u4e0b\u4fee\u6539\u3002\uff08\u8bf7\u5148\u5907\u4efd\uff09<br \/>\n1.\u627e\u5230\u4ee3\u7801<br \/>\n$pathinfo = $_SERVER[&#8216;PATH_INFO&#8217;];<br \/>\n\u5c06\u5176\u4fee\u6539\u4e3a<br \/>\n$pathinfo = mb_convert_encoding($_SERVER[&#8216;PATH_INFO&#8217;],&#8221;UTF-8&#8243;,&#8221;GBK&#8221;);<br \/>\n2.\u627e\u5230\u4ee3\u7801<br \/>\n$req_uri = $_SERVER[&#8216;REQUEST_URI&#8217;];<br \/>\n\u5c06\u5176\u4fee\u6539\u4e3a<br \/>\n$req_uri = mb_convert_encoding($_SERVER[&#8216;REQUEST_URI&#8217;],&#8221;UTF-8&#8243;,&#8221;GBK&#8221;);<br \/>\n\u5173\u4e8eWordPress \u6807\u7b7eTAG \u94fe\u63a5\u6253\u4e0d\u5f00\u7684\u53ea\u6709\u5728Windows\u73af\u5883\u4e0b\u624d\u4f1a\u6709\uff0cLinux\u6ca1\u6709\u53d1\u73b0\u6709\u8fd9\u6837\u7684\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress\u7684\u670b\u53cb\u90fd\u4f1a\u9047\u5230\u81ea\u5b9a\u4e49\u94fe\u63a5\u7684\u65f6\u5019tag\u94fe\u63a5\u4e0d\u80fd\u80fd\u6253\u5f00\uff0c\u8fd4\u56de404\u72b6\u6001\u3002\u56e0\u4e3aWordPress\u6682 &hellip; <a href=\"https:\/\/www.lnlog.cn\/index.php\/2012\/08\/08\/cn-tag\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u89e3\u51b3WordPress\u6807\u7b7eTAG\u94fe\u63a5\u6253\u4e0d\u5f00<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[290],"class_list":["post-322","post","type-post","status-publish","format-standard","hentry","category-tech","tag-customlinks"],"_links":{"self":[{"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/posts\/322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=322"}],"version-history":[{"count":0,"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/posts\/322\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lnlog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}