{"id":1125,"date":"2012-07-02T13:42:27","date_gmt":"2012-07-02T05:42:27","guid":{"rendered":"https:\/\/blog.rexdf.org\/?p=1125"},"modified":"2012-07-02T16:16:39","modified_gmt":"2012-07-02T08:16:39","slug":"wordpress3-4-1%e5%8d%87%e7%ba%a7%e5%90%8ebug%e4%bf%ae%e5%a4%8d%e6%97%a5%e8%ae%b0","status":"publish","type":"post","link":"https:\/\/blog.rexdf.org\/ja\/2012\/07\/wordpress3-4-1%e5%8d%87%e7%ba%a7%e5%90%8ebug%e4%bf%ae%e5%a4%8d%e6%97%a5%e8%ae%b0\/","title":{"rendered":"WordPress3.4.1\u5347\u7ea7\u540eBug\u4fee\u590d\u65e5\u8bb0"},"content":{"rendered":"<p>\u56e0\u4e3a\u4ee5\u524d\u4e00\u76f4\u6ca1\u6709\u5347\u7ea7\u4e3b\u9898\u7684\u4e60\u60ef\uff0c\u4e00\u6765\u4e3b\u9898\u81ea\u5b9a\u4e49\u4e1c\u897f\u8fc7\u591a\uff0c\u597d\u4e0d\u5bb9\u6613\u6539\u51fa\u6765\u7684\u4e1c\u897f\u4e0d\u60f3\u56e0\u4e3a\u5347\u7ea7\u800c\u641e\u4e22\u3002\u6700\u8fd1\u5347\u7ea7\u7248\u672c\u52303.4.1\uff0c\u60f3\u628a\u4e3b\u9898\u4e5f\u5347\u4e00\u4e0b\uff0c\u5907\u4efd\u540e\u4fbf\u5347\u7ea7\u4e86\uff0c\u53ef\u662f\u95ee\u9898\u4e00\u5927\u4e32\u7684\u3002<\/p>\n<h2>\u56fd\u5185\u89c6\u9891\u7f51\u7ad9\u65e0\u6cd5\u81ea\u52a8\u66ff\u6362<\/h2>\n<p>\u5148\u662f\u65e0\u6cd5\u50cfYoutube\u6216\u8005GoogleVideo\u4e00\u6837\u7684\u4f7f\u7528\u90a3\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u66ff\u6362\u3002<\/p>\n<li>1.\u628a\u4ee3\u7801\u7528FTP\u4e0b\u8f7d\u5230\u672c\u5730\uff0c\u8c03\u8bd5\u5b8c\u5168\u4e00\u6837\u7684\u4ee3\u7801\u3002\u672c\u5730\u6b63\u5e38\u3002<\/li>\n<li>2.\u628aWordPress\u7684\u6570\u636e\u5907\u4efd\u4e0b\u6765\uff0c\u672c\u5730\u5bfc\u5165\u6d4b\u8bd5\u6b63\u5e38\u3002\u7136\u540e\u628a\u670d\u52a1\u5668\u7684\u6570\u636e\u5e93\u5220\u6389\uff0c\u91cd\u65b0\u5b89\u88c5WordPress\u6700\u65b0\u7248\uff0c\u5bfc\u5165\u6570\u636e\u3002\u4f9d\u7136\u65e0\u6cd5\u66ff\u6362Youku\u3001Tudou\u7b49\u89c6\u9891\u3002<\/li>\n<li>3.\u628a\u670d\u52a1\u5668\u7684\u6570\u636e\u5e93\u4eceWestern Latin \u6539\u6210UTF8\uff0c\u548c\u672c\u5730\u5230\u6b64\u6570\u636e\u5e93\u4e00\u6837\u3002 \u4f9d\u7136\u65e0\u6cd5\u66ff\u6362\u3002<\/li>\n<li>4.\u6781\u7aef\u607c\u706b\uff0c\u628a\u670d\u52a1\u5668\u7684\u6240\u6709WordPress\u6587\u4ef6\u5939\u5185\u5bb9\u5168\u90e8\u5220\u6389\uff0c\u6682\u65f6\u628ahttps:\/\/blog.rexdf.org\u6307\u5411\u4e86GAE\u535a\u5ba2\uff0c\u505a\u4e86\u4e00\u4e2a\u6682\u65f6\u7684\u53cd\u5411\u4ee3\u7406\u3002\u7136\u540e\u4e0b\u8f7d\u4e00\u4e2a\u65b0\u7684wordpress-3.4.1-zh_CN\u4e0a\u4f20\uff0c\u91cd\u65b0\u5b89\u88c5\uff0c\u4f9d\u7136\u65e0\u6cd5\u66ff\u6362\u56fd\u5185\u89c6\u9891\u7f51\u7ad9\u3002\u4f46\u662f\u786e\u8ba4Youtube\u7684\u662f\u53ef\u4ee5\u88ab\u6b63\u5e38\u66ff\u6362\u3002<\/li>\n<li>5.\u628a\u7ffb\u8bd1\u6587\u4ef6\u6362\u6210\u524d\u4e00\u4e2a\u5e26\u201c\u4e2d\u6587\u672c\u5730\u5316\u201d\u83dc\u5355\u7684\uff0c\u4fee\u6539\u65e5\u5fd7\uff0c\u628a\u89c6\u9891\u5730\u5740\u7528&lt;p&gt;\u6807\u7b7e\u5305\u8d77\u6765\uff08\u8981\u77e5\u9053\u6211\u662f\u670910\u591a\u7bc7\u89c6\u9891\u65e5\u5fd7\u554a\uff0c\u53cd\u590d\u6539\u4e863\u6b21\uff09\u3002\u8001\u7248\u672c\u7684\u6587\u4ef6\u53ef\u4ee5\u6b63\u5e38\u5229\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u66ff\u6362\u56fd\u5185\u89c6\u9891\u3002<\/li>\n<li>6.\u624b\u52a8\u4fee\u6539\u4e86\/wp-content\/languages\/zh_CN.php\uff0c\u5982\u4e0b\n<pre class=\"brush: php; gutter: false; first-line: 1; highlight: []; html-script: false\"> \r\n&lt;?php\r\n\/**\r\n * WordPress China Localization Patches Collection\r\n *\/\r\n\r\n\/**\r\n * Legacy database options cleanup\r\n *\r\n * Cleanup of all options that were introduced pre-3.4.\r\n * To save time, this function is only to be called on admin pages.\r\n *\r\n * @since 3.4.0\r\n *\/\r\nfunction zh_cn_l10n_legacy_option_cleanup() {\r\n  \/\/ 3.3 series\r\n  delete_site_option( &#039;zh_cn_l10n_preference_patches&#039; );\r\n  \r\n  \/\/ 3.0.5, 3.1 series, 3.2 series\r\n  delete_site_option( &#039;zh_cn_language_pack_enable_chinese_fake_oembed&#039; );\r\n  \r\n  \/\/ 3.0.1, 3.0.2, 3.0.3, 3.0.4\r\n  delete_site_option( &#039;zh_cn_language_pack_options_version&#039; );\r\n  delete_site_option( &#039;zh_cn_language_pack_enable_backend_style_modifications&#039; );\r\n  \r\n  \/\/ awkward ones...\r\n  delete_site_option( &#039;zh_cn_language_pack_enable_icpip_num_show&#039; );\r\n  delete_site_option( &#039;zh_cn_language_pack_icpip_num&#039; );\r\n  delete_site_option( &#039;zh_cn_language_pack_is_configured&#039; );\r\n  \r\n}\r\nadd_action( &#039;admin_init&#039;, &#039;zh_cn_l10n_legacy_option_cleanup&#039; );\r\n\r\n\r\n\/**\r\n * Tudou wp_embed handler\r\n *\r\n * Embed code last updated:\r\n *  Tue, 05 Jun 2012 22:23:03 -0400 \r\n *\r\n * Feel free to submit or correct URL formats here:\r\n *  http:\/\/cn.wordpress.org\/contact\/\r\n *\r\n * @since 3.4.0\r\n *\/\r\nfunction wp_embed_handler_tudou( $matches, $attr, $url, $rawattr ) {\r\n  $embed = sprintf(\r\n    &#039;&lt;embed src=&quot;http:\/\/www.tudou.com\/v\/%1$s\/&amp;resourceId=0_05_05_99&amp;bid=05\/v.swf&quot; type=&quot;application\/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; wmode=&quot;opaque&quot; width=&quot;480&quot; height=&quot;400&quot;&gt;&lt;\/embed&gt;&#039;,\r\n    esc_attr( $matches[&#039;video_id&#039;] ) );\r\n\r\n  return apply_filters( &#039;embed_tudou&#039;, $embed, $matches, $attr, $url, $rawattr );\r\n}\r\nwp_embed_register_handler( &#039;tudou&#039;, \r\n  &#039;#https?:\/\/(?:www\\.)?tudou\\.com\/(?:programs\/view|listplay\/(?&lt;list_id&gt;[a-z0-9_=\\-]+))\/(?&lt;video_id&gt;[a-z0-9_=\\-]+)#i&#039;, \r\n  &#039;wp_embed_handler_tudou&#039; );\r\n\r\n\r\n\/**\r\n * 56.com wp_embed handler\r\n *\r\n * Embed code last updated:\r\n *  Tue, 05 Jun 2012 23:03:29 -0400 \r\n *\r\n * Feel free to submit or correct URL formats here:\r\n *  http:\/\/cn.wordpress.org\/contact\/\r\n *\r\n * @since 3.4.0\r\n *\/\r\nfunction wp_embed_handler_56com( $matches, $attr, $url, $rawattr ) {\r\n  $matches[&#039;video_id&#039;] = $matches[&#039;video_id1&#039;] == &#039;&#039; ? \r\n    $matches[&#039;video_id2&#039;] : $matches[&#039;video_id1&#039;];\r\n  \r\n  $embed = sprintf(\r\n    &quot;&lt;embed src=&#039;http:\/\/player.56.com\/v_%1\\$s.swf&#039;  type=&#039;application\/x-shockwave-flash&#039; width=&#039;480&#039; height=&#039;405&#039; allowFullScreen=&#039;true&#039; allowNetworking=&#039;all&#039; allowScriptAccess=&#039;always&#039;&gt;&lt;\/embed&gt;&quot;,\r\n    esc_attr( $matches[&#039;video_id&#039;] ) );\r\n\r\n  return apply_filters( &#039;embed_56com&#039;, $embed, $matches, $attr, $url, $rawattr );\r\n}\r\nwp_embed_register_handler( &#039;56com&#039;, \r\n  &#039;#https?:\/\/(?:www\\.)?56\\.com\/[a-z0-9]+\/(?:play_album\\-aid\\-[0-9]+_vid\\-(?&lt;video_id1&gt;[a-z0-9_=\\-]+)|v_(?&lt;video_id2&gt;[a-z0-9_=\\-]+))#i&#039;, \r\n  &#039;wp_embed_handler_56com&#039; );\r\n\r\n\r\n\/**\r\n * Youku wp_embed handler\r\n *\r\n * Embed code last updated:\r\n *  Wed, 06 Jun 2012 00:36:11 -0400 \r\n *\r\n * Feel free to submit or correct URL formats here:\r\n *  http:\/\/cn.wordpress.org\/contact\/\r\n *\r\n * @since 3.4.0\r\n *\/\r\nfunction wp_embed_handler_youku( $matches, $attr, $url, $rawattr ) {\r\n  $embed = sprintf(\r\n    &#039;&lt;embed src=&quot;http:\/\/player.youku.com\/player.php\/sid\/%1$s\/v.swf&quot; allowFullScreen=&quot;true&quot; quality=&quot;high&quot; width=&quot;480&quot; height=&quot;400&quot; align=&quot;middle&quot; allowScriptAccess=&quot;always&quot; type=&quot;application\/x-shockwave-flash&quot;&gt;&lt;\/embed&gt;&#039;,\r\n    esc_attr( $matches[&#039;video_id&#039;] ) );\r\n\r\n  return apply_filters( &#039;embed_youku&#039;, $embed, $matches, $attr, $url, $rawattr );\r\n}\r\nwp_embed_register_handler( &#039;youku&#039;, \r\n  &#039;#https?:\/\/v\\.youku\\.com\/v_show\/id_(?&lt;video_id&gt;[a-z0-9_=\\-]+)#i&#039;, \r\n  &#039;wp_embed_handler_youku&#039; );\r\n\r\n\r\n\/**\r\n * Chinese administration screens style - enqueue stylesheet\r\n *\r\n * This patch serves as a work-around to fix the font-size and font-style.\r\n *\r\n * Submit better CSS rules here:\r\n *  http:\/\/cn.wordpress.org\/contact\/\r\n *\r\n * @since 3.3.0\r\n *\/\r\nfunction zh_cn_l10n_patch_admin_screens_style_enqueue_stylesheet() {\r\n  wp_register_style( &#039;zh-cn-l10n-administration-screens&#039;, \r\n    content_url( ( WP_DEBUG ? &#039;\/languages\/zh_CN-administration-screens.dev.css&#039; : &#039;\/languages\/zh_CN-administration-screens.css&#039; ) ), \r\n    array( &#039;wp-admin&#039; ), \r\n    &#039;20111120&#039;);\r\n  wp_enqueue_style( &#039;zh-cn-l10n-administration-screens&#039; );\r\n}\r\nadd_action( &#039;admin_init&#039;, \r\n  &#039;zh_cn_l10n_patch_admin_screens_style_enqueue_stylesheet&#039; );\r\n\r\n\r\n\/**\r\n * Chinese character count - register script\r\n *\r\n * This patch serves as a work-around to fix the built-in word-count.js.\r\n * \r\n * The sum of Chinese characters and English words will show up in &quot;word count&quot;\r\n * field once enabled.\r\n *\r\n * @since 3.3.0\r\n *\/\r\nfunction zh_cn_l10n_patch_character_count_register_script() {\r\n  wp_deregister_script( &#039;word-count&#039; );\r\n  wp_register_script( &#039;word-count&#039;, \r\n    content_url( ( WP_DEBUG ? &#039;\/languages\/zh_CN-word-count.dev.js&#039; : &#039;\/languages\/zh_CN-word-count.js&#039; ) ), \r\n    array( &#039;jquery&#039; ), \r\n    &#039;20120605&#039; );\r\n}\r\nadd_action( &#039;admin_footer&#039;, \r\n  &#039;zh_cn_l10n_patch_character_count_register_script&#039; );\r\n\r\n\r\n?&gt;\r\n\r\n\r\n&lt;?php\r\n\r\n\/**\r\n * \u6ce8\u518c\u8bbe\u7f6e\r\n *\r\n * @since 3.0.1\r\n *\/\r\nfunction zh_cn_language_pack_backend_register_settings() {\r\n    add_settings_field( &#039;zh_cn_language_pack_enable_chinese_fake_oembed&#039;,\r\n        &#039;\u4e2d\u56fd\u5a92\u4f53\u5d4c\u5165&#039;,\r\n        &#039;zh_cn_language_pack_embed_fake_oembed_settings&#039;,\r\n        &#039;media&#039;,\r\n        &#039;embeds&#039; );\r\n\r\n    add_option( &#039;zh_cn_language_pack_enable_backend_style_modifications&#039;, 1 );\r\n    add_option( &#039;zh_cn_language_pack_enable_chinese_fake_oembed&#039;, 1 );\r\n    \r\n    register_setting( &#039;zh-cn-language-pack-general-settings&#039;,\r\n        &#039;zh_cn_language_pack_enable_backend_style_modifications&#039; );\r\n    register_setting( &#039;zh-cn-language-pack-general-settings&#039;,\r\n        &#039;zh_cn_language_pack_enable_chinese_fake_oembed&#039; );\r\n\r\n    register_setting( &#039;media&#039;,\r\n        &#039;zh_cn_language_pack_enable_chinese_fake_oembed&#039; );\r\n\r\n    \/\/ \u4ece\u7528\u6237\u6570\u636e\u5e93\u79fb\u9664\u65e7\u8bbe\u7f6e\u9879\r\n    delete_option( &#039;zh_cn_language_pack_options_version&#039; ); \/\/ TODO \u5728 3.2 \u4e4b\u540e\u79fb\u9664\u672c\u884c\r\n}\r\n\r\n\/**\r\n * \u6dfb\u52a0\u83dc\u5355\r\n *\r\n * @since 3.0.1\r\n *\/\r\nfunction zh_cn_language_pack_backend_create_menu() {\r\n    add_options_page( &#039;\u4e2d\u6587\u672c\u5730\u5316\u9009\u9879&#039;, &#039;\u4e2d\u6587\u672c\u5730\u5316&#039;, &#039;administrator&#039;, &#039;zh-cn-language-pack-settings&#039;, \r\n        &#039;zh_cn_language_pack_settings_page&#039; );\r\n}\r\n\r\n\/**\r\n * \u6dfb\u52a0\u63a7\u5236\u677f\u5e2e\u52a9\u6587\u672c\r\n *\r\n * @since 3.0.1\r\n *\/\r\nfunction zh_cn_language_pack_contextual_help() {\r\n    add_contextual_help(&#039;settings_page_zh-cn-language-pack-settings&#039;,\r\n        &#039;&lt;p&gt;\u5728\u8fd9\u91cc\u5bf9 WordPress \u5b98\u65b9\u4e2d\u6587\u8bed\u8a00\u5305\u8fdb\u884c\u81ea\u5b9a\u4e49\u3002&lt;\/p&gt;&#039; .\r\n        &#039;&lt;p&gt;&lt;strong&gt;\u540e\u53f0\u6837\u5f0f\u4f18\u5316&lt;\/strong&gt; - \u5f00\u542f\u540e\u53ef\u4ee5\u4ee4\u540e\u53f0\u663e\u793a\u4e2d\u6587\u66f4\u52a0\u7f8e\u89c2\uff0c\u5b83\u4e0d\u4f1a\u5f71\u54cd\u5230\u60a8\u7ad9\u70b9\u524d\u53f0\u7684\u6837\u5f0f\u3002\u9ed8\u8ba4\u5f00\u542f\u3002&lt;\/p&gt;&#039; .\r\n        &#039;&lt;p&gt;&lt;strong&gt;\u4e2d\u6587\u89c6\u9891\u7f51\u7ad9\u89c6\u9891\u81ea\u52a8\u5d4c\u5165&lt;\/strong&gt; - \u5141\u8bb8\u60a8\u4ee5\u5728\u6587\u7ae0\u6dfb\u52a0\u89c6\u9891\u64ad\u653e\u9875\u9762\u7f51\u5740\u7684\u65b9\u5f0f\uff0c\u7b80\u5355\u5730\u63d2\u5165\u4f18\u9177\u7f51\u300156.com \u548c\u571f\u8c46\u7f51\u89c6\u9891\u3002\u9ed8\u8ba4\u5f00\u542f\u3002&lt;br \/&gt;\u5f53\u524d\u652f\u6301\u7684\u7ad9\u70b9\u3001\u6837\u4f8b URL \u548c\u53c2\u6570\u5982\u4e0b\uff1a&lt;\/p&gt;&#039; .\r\n        &#039;&lt;ul&gt;&#039; .\r\n        &#039;   &lt;li&gt;&lt;em&gt;\u4f18\u9177\u7f51&lt;\/em&gt; - \u5982 &lt;code&gt;http:\/\/v.youku.com\/v_show\/id_XMjQxMjc1MDIw.html&lt;\/code&gt; - \u5bbd 480px\uff0c\u9ad8 400px&lt;\/li&gt;&#039; .\r\n        &#039;   &lt;li&gt;&lt;em&gt;56.com&lt;\/em&gt; - \u5982 &lt;code&gt;http:\/\/www.56.com\/u21\/v_NTgxMzE4NDI.html&lt;\/code&gt; - \u5bbd 480px\uff0c\u9ad8 395px&lt;\/li&gt;&#039; .\r\n        &#039;   &lt;li&gt;&lt;em&gt;\u571f\u8c46\u7f51&lt;\/em&gt; - \u5982 &lt;code&gt;http:\/\/www.tudou.com\/programs\/view\/o9tsm_CL5As\/&lt;\/code&gt; - \u5bbd 480px\uff0c\u9ad8 400px&lt;\/li&gt;&#039; .\r\n        &#039;&lt;\/ul&gt;&#039; .\r\n        &#039;&lt;p&gt;\u60a8\u53ea\u9700\u5728\u6587\u7ae0\u53e6\u8d77\u4e00\u6bb5\uff0c\u5199\u5165\u5f62\u5982\u4e0a\u8ff0\u7684\u64ad\u653e\u9875\u9762\u94fe\u63a5\u3002\u5728\u6587\u7ae0\u663e\u793a\u65f6\uff0cWordPress \u5c06\u81ea\u52a8\u66ff\u6362\u8fd9\u4e9b\u94fe\u63a5\u4e3a\u76f8\u5e94\u89c6\u9891\u64ad\u653e\u5668\u3002\u9700\u8981\u60a8\u7279\u522b\u6ce8\u610f\u7684\u662f\uff0c\u8bf7\u4e0d\u8981\u4e3a URL \u8bbe\u7f6e\u8d85\u94fe\u63a5\uff0c\u4e14\u8be5 URL \u672c\u8eab\u5fc5\u987b\u72ec\u7acb\u6210\u6bb5\u3002&#039; .\r\n        &#039;&lt;p&gt;&lt;strong&gt;\u66f4\u591a\u4fe1\u606f\uff1a&lt;\/strong&gt;&lt;\/p&gt;&#039; .\r\n        &#039;&lt;p&gt;\u82e5\u60a8\u53d1\u73b0\u4efb\u4f55\u6587\u5b57\u4e0a\u7684\u9519\u8bef\uff0c\u6216\u6709\u4efb\u4f55\u610f\u89c1\u3001\u5efa\u8bae\uff0c\u6b22\u8fce\u8bbf\u95ee\u4e0b\u5217\u9875\u9762\u8fdb\u884c\u56de\u62a5 \u2014\u2014&lt;br \/&gt;&#039; .\r\n        &#039;&lt;a href=&quot;http:\/\/cn.wordpress.org\/contact\/&quot; target=&quot;_blank&quot;&gt;WordPress China \u201c\u8054\u7cfb\u201d\u9875\u9762&lt;\/a&gt;&lt;\/p&gt;&#039;\r\n    );\r\n}\r\n\r\n\/**\r\n * \u8f93\u51fa\u5a92\u4f53\u9875\u9762\u8bbe\u7f6e\u9879\u4ee3\u7801\r\n *\r\n * @since 3.2\r\n *\/\r\nfunction zh_cn_language_pack_embed_fake_oembed_settings() {\r\n    echo &#039;&lt;input type=&quot;checkbox&quot; id=&quot;zh_cn_language_pack_enable_chinese_fake_oembed&quot; name=&quot;zh_cn_language_pack_enable_chinese_fake_oembed&quot; value=&quot;1&quot;&#039;;\r\n    echo checked( &#039;1&#039;, get_option( &#039;zh_cn_language_pack_enable_chinese_fake_oembed&#039; ) );\r\n    echo &#039; \/&gt; \u81ea\u52a8\u4ece URL \u5d4c\u5165\u4e2d\u56fd\u89c6\u9891\u7f51\u7ad9\u4e0a\u7684\u89c6\u9891\u3002\u8be6\u89c1\u201c\u8bbe\u7f6e\u201d \u2192 \u201c\u4e2d\u6587\u672c\u5730\u5316\u201d\u7684\u5e2e\u52a9\u3002&#039;;\r\n}\r\n\r\n\/**\r\n * \u6dfb\u52a0\u8bbe\u7f6e\u9875\u9762\r\n *\r\n * @since 3.0.1\r\n *\/\r\nfunction zh_cn_language_pack_settings_page() {\r\n    ?&gt;&lt;div class=&quot;wrap&quot;&gt;\r\n&lt;h2&gt;\u4e2d\u6587\u672c\u5730\u5316\u9009\u9879&lt;\/h2&gt;\r\n\r\n&lt;form method=&quot;post&quot; action=&quot;options.php&quot;&gt;\r\n    &lt;h3 class=&quot;title&quot;&gt;\u8c03\u6574\u8bbe\u7f6e&lt;\/h3&gt;\r\n    &lt;p&gt;\u5bf9\u4e2d\u6587\u8bed\u8a00\u5305\u8fdb\u884c\u81ea\u5b9a\u4e49\u3002&lt;\/p&gt;\r\n    &lt;?php settings_fields( &#039;zh-cn-language-pack-general-settings&#039; ); ?&gt;\r\n    &lt;table class=&quot;form-table&quot;&gt;\r\n        &lt;tr valign=&quot;top&quot;&gt;\r\n            &lt;th scope=&quot;row&quot;&gt;\u540e\u53f0\u6837\u5f0f\u4f18\u5316&lt;\/th&gt;\r\n            &lt;td&gt;\r\n                &lt;label for=&quot;zh_cn_language_pack_enable_backend_style_modifications&quot;&gt;&lt;input type=&quot;checkbox&quot; id=&quot;zh_cn_language_pack_enable_backend_style_modifications&quot; name=&quot;zh_cn_language_pack_enable_backend_style_modifications&quot; value=&quot;1&quot;&lt;?php checked( &#039;1&#039;, get_option( &#039;zh_cn_language_pack_enable_backend_style_modifications&#039; ) ); ?&gt; \/&gt; \u5bf9\u540e\u53f0\u6837\u5f0f\u8fdb\u884c\u4f18\u5316\u3002&lt;\/label&gt;\r\n                &lt;br \/&gt;\r\n                &lt;span class=&quot;description&quot;&gt;\r\n                    \u4f18\u5316\u63a7\u5236\u677f\u4ee5\u53ca\u767b\u5f55\u9875\u9762\u7684\u5b57\u4f53\u6837\u5f0f\u3002\u6b64\u64cd\u4f5c\u4e0d\u4f1a\u5f71\u54cd\u5230\u60a8\u7684\u535a\u5ba2\u524d\u53f0\u3002\r\n                &lt;\/span&gt;\r\n            &lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n        &lt;tr valign=&quot;top&quot;&gt;\r\n            &lt;th scope=&quot;row&quot;&gt;\u4e2d\u56fd\u89c6\u9891\u7f51\u7ad9\u89c6\u9891\u81ea\u52a8\u5d4c\u5165&lt;\/th&gt;\r\n            &lt;td&gt;\r\n                &lt;label for=&quot;zh_cn_language_pack_enable_chinese_fake_oembed&quot;&gt;&lt;input type=&quot;checkbox&quot; id=&quot;zh_cn_language_pack_enable_chinese_fake_oembed&quot; name=&quot;zh_cn_language_pack_enable_chinese_fake_oembed&quot; value=&quot;1&quot;&lt;?php checked( &#039;1&#039;, get_option( &#039;zh_cn_language_pack_enable_chinese_fake_oembed&#039; ) ); ?&gt; \/&gt; \u81ea\u52a8\u4ece URL \u5d4c\u5165\u4e2d\u56fd\u89c6\u9891\u7f51\u7ad9\u4e0a\u7684\u89c6\u9891\u3002&lt;\/label&gt;\r\n                &lt;br \/&gt;\r\n                &lt;span class=&quot;description&quot;&gt;\r\n                    \u81ea\u52a8\u5d4c\u5165\u4f18\u9177\u7f51\u300156.com \u548c\u571f\u8c46\u7f51\u7684\u89c6\u9891\u3002\u7528\u6cd5\u53ca\u663e\u793a\u5927\u5c0f\uff0c\u8bf7\u89c1\u9875\u9762\u4e0a\u65b9\u201c\u5e2e\u52a9\u201d\u9009\u9879\u5361\u3002\r\n                &lt;\/span&gt;\r\n            &lt;\/td&gt;\r\n        &lt;\/tr&gt;\r\n    &lt;\/table&gt;\r\n    \r\n    &lt;p class=&quot;submit&quot;&gt;\r\n        &lt;input type=&quot;submit&quot; class=&quot;button-primary&quot; value=&quot;\u4fdd\u5b58\u66f4\u6539&quot; \/&gt;\r\n    &lt;\/p&gt;\r\n&lt;\/form&gt;\r\n\r\n&lt;\/div&gt;&lt;?php\r\n}\r\n\r\n\/**\r\n * \u663e\u793a\u6587\u7ae0\u65f6\u5c06 URL \u66ff\u6362\u6210\u5a92\u4f53\u5d4c\u5165\u4ee3\u7801\r\n *\r\n * @since 3.0.5\r\n *\/\r\nfunction zh_cn_language_pack_substitute_chinese_video_urls( $content ) {\r\n    $schema = array(&#039;\/^&lt;p&gt;http:\\\/\\\/v\\.youku\\.com\\\/v_show\\\/id_([a-z0-9_=\\-]+)\\.html((\\?|#|&amp;).*?)*?\\s*&lt;\\\/p&gt;\\s*$\/im&#039; =&gt; &#039;&lt;p&gt;&lt;embed src=&quot;http:\/\/player.youku.com\/player.php\/sid\/$1\/v.swf&quot; quality=&quot;high&quot; width=&quot;480&quot; height=&quot;400&quot; align=&quot;middle&quot; allowScriptAccess=&quot;sameDomain&quot; type=&quot;application\/x-shockwave-flash&quot;&gt;&lt;\/embed&gt;&lt;\/p&gt;&#039;,\r\n        &#039;\/^&lt;p&gt;http:\\\/\\\/www\\.56\\.com\\\/[a-z0-9]+\\\/v_([a-z0-9_\\-]+)\\.html((\\?|#|&amp;).*?)*?\\s*&lt;\\\/p&gt;\\s*$\/im&#039; =&gt; &#039;&lt;p&gt;&lt;embed src=&quot;http:\/\/player.56.com\/v_$1.swf&quot; type=&quot;application\/x-shockwave-flash&quot; width=&quot;480&quot; height=&quot;395&quot; allowNetworking=&quot;all&quot; allowScriptAccess=&quot;always&quot;&gt;&lt;\/embed&gt;&lt;\/p&gt;&#039;,\r\n        &#039;\/^&lt;p&gt;http:\\\/\\\/www\\.tudou\\.com\\\/programs\\\/view\\\/([a-z0-9_\\-]+)[\\\/]?((\\?|#|&amp;).*?)*?\\s*&lt;\\\/p&gt;\\s*$\/im&#039; =&gt; &#039;&lt;p&gt;&lt;embed src=&quot;http:\/\/www.tudou.com\/v\/$1\/v.swf&quot; type=&quot;application\/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; wmode=&quot;opaque&quot; width=&quot;480&quot; height=&quot;400&quot;&gt;&lt;\/embed&gt;&lt;\/p&gt;&#039;);\r\n\r\n    foreach ( $schema as $pattern =&gt; $replacement ) {\r\n        $content = preg_replace( $pattern, $replacement, $content );\r\n    }\r\n    \r\n    return $content;\r\n}\r\n    \r\n\/**\r\n * \u8f93\u51fa\u540e\u53f0\u6837\u5f0f\u4f18\u5316\u4ee3\u7801\r\n *\r\n * @since 3.0.1\r\n *\/\r\nfunction zh_cn_language_pack_backend_style_modify() {\r\n    $styleUrl = WP_CONTENT_URL . &#039;\/&#039; . ZH_CN_PACK_LANGUAGE_DIR_TO_CONTENT . &#039;zh_CN-dashboard.css&#039;;\r\n    $styleFile = WP_CONTENT_DIR . &#039;\/&#039; . ZH_CN_PACK_LANGUAGE_DIR_TO_CONTENT . &#039;zh_CN-dashboard.css&#039;;\r\n    if ( file_exists( $styleFile ) ) {\r\n        wp_register_style( &#039;zh-cn-pack-style-dashboard&#039;, $styleUrl, array(), &#039;1.0&#039;);\r\n        wp_enqueue_style( &#039;zh-cn-pack-style-dashboard&#039; );\r\n    }\r\n}\r\n\r\n\/**\r\n * \u8f93\u51fa\u767b\u5f55\u9875\u9762\u6837\u5f0f\u4f18\u5316\u4ee3\u7801\r\n *\r\n * @since 3.0.1\r\n *\/\r\nfunction zh_cn_language_pack_login_screen_style_modify() {\r\n    \/\/ \u8d21\u732e\uff1aCSS \u4ee3\u7801\u7531 moja \u63d0\u4f9b\r\n    \/\/ \u60a8\u53ef\u4ee5\u5728 http:\/\/cn.wordpress.org\/contact\/ \u63d0\u4ea4\u60a8\u7684\u610f\u89c1\r\n    echo &lt;&lt;&lt;EOF\r\n&lt;style type=&quot;text\/css&quot; media=&quot;screen&quot;&gt;\r\n    * { font: 12px Segoe UI,Tahoma,Arial,Verdana,simsun,sans-serif,&quot;Microsoft YaHei&quot;; }\r\n&lt;\/style&gt;\r\n\r\nEOF;\r\n}\r\n\r\n\r\n\/\/ \u51c6\u5907\u63a7\u5236\u677f\u9875\u9762\r\nif ( is_admin() ) {\r\n    add_action( &#039;admin_init&#039;, &#039;zh_cn_language_pack_backend_register_settings&#039; );\r\n    add_action( &#039;admin_menu&#039;, &#039;zh_cn_language_pack_backend_create_menu&#039; );\r\n    add_action( &#039;admin_head-settings_page_zh-cn-language-pack-settings&#039;, &#039;zh_cn_language_pack_contextual_help&#039; );\r\n}\r\n\r\n\/\/ \u540e\u53f0\u6837\u5f0f\u4f18\u5316\r\nif ( get_option(&#039;zh_cn_language_pack_enable_backend_style_modifications&#039;) == 1 ) {\r\n    add_action( &#039;admin_init&#039;, &#039;zh_cn_language_pack_backend_style_modify&#039; );\r\n    add_action( &#039;login_head&#039;, &#039;zh_cn_language_pack_login_screen_style_modify&#039; );\r\n}\r\n\r\n\/\/ \u4e2d\u56fd\u5a92\u4f53\u5d4c\u5165\r\nif ( get_option(&#039;zh_cn_language_pack_enable_chinese_fake_oembed&#039;) == 1 ) {\r\n    add_filter( &#039;the_content&#039;, &#039;zh_cn_language_pack_substitute_chinese_video_urls&#039; );\r\n}\r\n\r\n?&gt;\r\n<\/pre>\n<p>;\n<\/li>\n<h2>PostViews\u63d2\u4ef6\u4e3b\u9898\u4e2d\u9ed8\u8ba4\u4e0d\u663e\u793a<\/h2>\n<p>\u53e6\u5916\u4e00\u4e2a\u7ea0\u7ed3\u7684\u95ee\u9898\u5c31\u662fWordPress\u7684PostViews\u63d2\u4ef6\u597d\u50cf\u65e0\u6cd5\u663e\u793a\u4e86\uff0c\u65e0\u610f\u4e2d\u53d1\u73b0\u4e86\u4f7f\u7528\u8001\u7248\u672c\u7684Twenty-Ten\u4e3b\u9898\u662f\u6ca1\u95ee\u9898\u7684\uff0c\u65b0\u4e3b\u9898\u7684\u95ee\u9898\u3002\u4e8e\u662f\u8fdb\u884c\u6587\u672c\u6bd4\u8f83\uff0c\u663e\u793a\u7ea0\u7ed3\u7684\u53d1\u73b00A\u4e0e0D 0A\u7684\u7f16\u7801\u95ee\u9898\uff0c\u540e\u8be6\u7ec6\u6bd4\u8f83\uff08\u5982\u4e0b\u56fe\uff0c\u56e0\u4e3a\u7f16\u7801\u4e0d\u540c\u62a5\u7684\u5dee\u5f02\u6bd4\u8f83\u5927\uff0c\u5e94\u8be5\u4e0eLinux\u548cWindows\u6362\u884c\u7b26\u65e0\u5173)<br \/>\n<a href=\"https:\/\/blog.rexdf.org\/wp-content\/uploads\/2012\/07\/pic1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.rexdf.org\/plugins\/images-lazyload-and-slideshow\/blank_1x1.gif\" file=\"https:\/\/blog.rexdf.org\/wp-content\/uploads\/2012\/07\/pic1-1024x378.jpg\" alt=\"\" title=\"pic1\" width=\"640\" height=\"236\" class=\"alignnone size-large wp-image-1130 ls_lazyimg\" \/><noscript><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.rexdf.org\/wp-content\/uploads\/2012\/07\/pic1-1024x378.jpg\" alt=\"\" title=\"pic1\" width=\"640\" height=\"236\" class=\"alignnone size-large wp-image-1130\" srcset=\"https:\/\/static.rexdf.org\/uploads\/2012\/07\/pic1-1024x378.jpg 1024w, https:\/\/static.rexdf.org\/uploads\/2012\/07\/pic1-300x110.jpg 300w, https:\/\/static.rexdf.org\/uploads\/2012\/07\/pic1.jpg 1132w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/noscript><\/a><br \/>\n<a href=\"https:\/\/blog.rexdf.org\/wp-content\/uploads\/2012\/07\/pic3.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.rexdf.org\/plugins\/images-lazyload-and-slideshow\/blank_1x1.gif\" file=\"https:\/\/blog.rexdf.org\/wp-content\/uploads\/2012\/07\/pic3-1024x388.jpg\" alt=\"\" title=\"pic3\" width=\"640\" height=\"242\" class=\"alignnone size-large wp-image-1131 ls_lazyimg\" \/><noscript><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.rexdf.org\/wp-content\/uploads\/2012\/07\/pic3-1024x388.jpg\" alt=\"\" title=\"pic3\" width=\"640\" height=\"242\" class=\"alignnone size-large wp-image-1131\" srcset=\"https:\/\/static.rexdf.org\/uploads\/2012\/07\/pic3-1024x388.jpg 1024w, https:\/\/static.rexdf.org\/uploads\/2012\/07\/pic3-300x113.jpg 300w, https:\/\/static.rexdf.org\/uploads\/2012\/07\/pic3.jpg 1106w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/noscript><\/a><br \/>\n\u6700\u7ec8\u4fee\u6539\u4e09\u4e2a\u4e3b\u9898\u6587\u4ef6\u5939\u4e0b\u7684\u6587\u4ef6\uff1a<br \/>\nloop.php\u3001loop-attachment.php\u3001loop-single.php<br \/>\n\u901a\u8fc7\u6dfb\u52a0\u4e00\u5b9a\u7684\u4ee3\u7801\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<h2>3.4.1\u8bc4\u8bba\u9ed8\u8ba4\u4e0d\u663e\u793a\u95ee\u9898<\/h2>\n<p>\u7b2c\u4e09\u4e2a\u7ea0\u7ed3\u7684\u95ee\u9898\u662f\u8bc4\u8bba\u65e0\u6cd5\u663e\u793a\uff0c\u7ecf\u8fc7\u591a\u65b9\u7684\u8c03\u8bd5\uff0c\u6700\u7ec8\u5b9a\u4f4d\u4e8e\u4e3b\u9898\u76ee\u5f55\u7684functions.php\u91cc\u9762\u7684function twentyten_comment( $comment, $args, $depth ) \u51fd\u6570\u4e2d\u7684\u4e00\u6bb5\u4ee3\u7801\uff1a<\/p>\n<pre class=\"brush: php; gutter: false; first-line: 1; highlight: []; html-script: false\">\r\n&lt;div class=&quot;comment-body&quot;&gt;\r\n\t\t&lt;?php comment_text(); ?&gt;\r\n        &lt;\/div&gt;\r\n<\/pre>\n<p>\u6362\u6210<\/p>\n<pre class=\"brush: php; gutter: false; first-line: 1; highlight: []; html-script: false\">\r\n&lt;div class=&quot;comment-body&quot;&gt;\r\n\t\t&lt;?php echo $comment-&gt;comment_content; ?&gt;\r\n        &lt;\/div&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u56e0\u4e3a\u4ee5\u524d\u4e00\u76f4\u6ca1\u6709\u5347\u7ea7\u4e3b\u9898\u7684\u4e60\u60ef\uff0c\u4e00\u6765\u4e3b\u9898\u81ea\u5b9a\u4e49\u4e1c\u897f\u8fc7\u591a\uff0c\u597d\u4e0d\u5bb9\u6613\u6539\u51fa\u6765\u7684\u4e1c\u897f\u4e0d\u60f3 &hellip; <a href=\"https:\/\/blog.rexdf.org\/ja\/2012\/07\/wordpress3-4-1%e5%8d%87%e7%ba%a7%e5%90%8ebug%e4%bf%ae%e5%a4%8d%e6%97%a5%e8%ae%b0\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[19],"tags":[98],"class_list":["post-1125","post","type-post","status-publish","format-standard","hentry","category-site-build","tag-twenty-ten"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/posts\/1125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/comments?post=1125"}],"version-history":[{"count":0,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/posts\/1125\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/media?parent=1125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/categories?post=1125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/tags?post=1125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}