{"id":6,"date":"2014-06-20T23:17:23","date_gmt":"2014-06-20T15:17:23","guid":{"rendered":"http:\/\/localhost:8085\/?p=6"},"modified":"2014-06-21T00:05:20","modified_gmt":"2014-06-20T16:05:20","slug":"wordpress%e7%a6%81%e6%ad%a2%e4%bd%bf%e7%94%a8%e8%b0%b7%e6%ad%8c%e5%ad%97%e4%bd%93%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/6.html","title":{"rendered":"WordPress\u7981\u6b62\u4f7f\u7528\u8c37\u6b4c\u5b57\u4f53\u7684\u65b9\u6cd5"},"content":{"rendered":"
\u6700\u8fd1\u8c37\u6b4c\u5728\u56fd\u5185\u4f3c\u4e4e\u906d\u5230\u5168\u9762\u5c01\u6740\uff0c\u4e0d\u4ec5\u641c\u7d22\u670d\u52a1\u5b8c\u5168\u65e0\u6cd5\u4f7f\u7528\uff0c\u4e5f\u6b83\u53ca\u5230\u5176\u4ed6\u670d\u52a1\uff0c\u5176\u4e2d\u4e00\u4e2a\u53d7\u7275\u8fde\u7684\u4e8b\u60c5\u5c31\u662f\uff0c\u6700\u8fd1\u5728\u4f7f\u7528Wordpress\u65f6\uff0c\u9875\u9762\u52a0\u8f7d\u5f02\u5e38\u7f13\u6162\uff0c\u4e00\u4e2a\u7b80\u5355\u7684\u9875\u9762\u9700\u8981\u7b49\u5f85\u5f88\u4e45\uff0c\u4f7f\u7528firebug\u67e5\u770b\u53d1\u73b0\uff0c\u662f\u6d4f\u89c8\u5668\u4e00\u76f4\u5728\u7b49\u5f85\u9875\u9762\u4e2d\u5d4c\u5165\u7684\u8c37\u6b4c\u7f51\u7edc\u5b57\u4f53(google fonts)\u94fe\u63a5fonts.googleapis.com\uff0c\u76f4\u5230\u8d85\u65f6\u3002\u8fd9\u8bf4\u660efonts.googleapis.com\u8fd9\u4e2a\u7f51\u7ad9\u4e5f\u88ab\u5c01\u9501\u4e86\u3002<\/p>\n
\u4e2d\u6587\u662f\u5f88\u96be\u4f7f\u7528\u7f51\u7edc\u5b57\u4f53\u7684\uff0c\u66f4\u522b\u8bf4\u8c37\u6b4c\u63d0\u4f9b\u7684\u82f1\u6587\u7f51\u7edc\u5b57\u4f53\u4e86\u2014\u2014\u57fa\u672c\u4e0a\u6beb\u65e0\u7528\u5904\u3002\u6240\u4ee5\u5f88\u5947\u602a\u4e3a\u4ec0\u4e48\u4e2d\u6587\u7248\u7684Wordpress\u91cc\u8fd8\u5f15\u7528\u4e86\u8c37\u6b4c\u5b57\u4f53\u3002<\/p>\n
\u65e2\u7136\u8c37\u6b4c\u88ab\u5c01\u6740\u662f\u65e0\u6cd5\u907f\u514d\u7684\uff0c\u90a3\u5bf9\u4e8e\u6211\u4eec\u4e2a\u4eba\u6765\u8bf4\u5c31\u53ea\u80fd\u8ba9Wordpress\u7981\u6b62\u4f7f\u7528fonts.googleapis.com\u8fd9\u4e2a\u5730\u5740\u3002\u8ba9\u4f60\u5982\u4f55\u53bb\u6389\u9875\u9762\u4e2d\u5d4c\u5165\u7684fonts.googleapis.com\u5f15\u7528\u94fe\u63a5\u5462\uff1f<\/p>\n
WordPress\u7cfb\u7edf\u91cc\u6709\u4e24\u4e2a\u5730\u65b9\u4f7f\u7528\u4e86\u8c37\u6b4c\u5b57\u4f53\uff0c\u4e00\u4e2a\u662f\u4e3b\u9898\u91cc\uff0c\u4e00\u4e2a\u662f\u7ba1\u7406\u5458\u754c\u9762\u3002\u4e3b\u9898\u91cc\u7684\u8c37\u6b4c\u5b57\u4f53\u5f88\u597d\u53bb\u6389\uff0c\u76f4\u63a5\u5220\u9664\u5c31\u884c\u4e86\uff0c\u4f46\u7ba1\u7406\u5458admin\u754c\u9762\u91cc\u7684\u8c37\u6b4c\u5b57\u4f53\u5c31\u4e0d\u662f\u8fd9\u4e48\u5bb9\u6613\u4e86\uff0c\u56e0\u4e3a\u6211\u4eec\u4e0d\u80fd\u4fee\u6539wordpress\u7cfb\u7edf\u6587\u4ef6(\u4fee\u6539\u540e\u7684\u7cfb\u7edf\u6587\u4ef6\u4f1a\u5728\u4e0b\u4e00\u6b21\u5347\u7ea7\u65f6\u53ef\u80fd\u88ab\u8986\u76d6\u6389\u3002)<\/p>\n
\u5728wp-includes\/script-loader.php\u7684564\u884c(\u6211\u4f7f\u7528\u7684\u7248\u672c\u662f3.9)\uff0c\u4f60\u80fd\u770b\u5230\u4e0b\u9762\u4e00\u6bb5\u4ee3\u7801\uff1a<\/p>\n
if<\/span> (<\/span> 'off'<\/span> !<\/span>==<\/span> _x(<\/span><\/span> 'on'<\/span>,<\/span> 'Open Sans font: on or off'<\/span> )<\/span> )<\/span> {<\/span>\r\n\t\t$subsets<\/span> =<\/span> 'latin,latin-ext'<\/span>;<\/span>\r\n\r\n\t\t\/* translators: To add an additional Open Sans character subset specific to your language,\r\n\t\t * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.\r\n\t\t *\/<\/span>\r\n\t\t$subset<\/span> =<\/span> _x(<\/span><\/span> 'no-subset'<\/span>,<\/span> 'Open Sans font: add new subset (greek, cyrillic, vietnamese)'<\/span> )<\/span>;<\/span>\r\n\r\n\t\tif<\/span> (<\/span> 'cyrillic'<\/span> ==<\/span> $subset<\/span> )<\/span> {<\/span>\r\n\t\t\t$subsets<\/span> .<\/span>=<\/span> ',cyrillic,cyrillic-ext'<\/span>;<\/span>\r\n\t\t}<\/span> elseif<\/span> (<\/span> 'greek'<\/span> ==<\/span> $subset<\/span> )<\/span> {<\/span>\r\n\t\t\t$subsets<\/span> .<\/span>=<\/span> ',greek,greek-ext'<\/span>;<\/span>\r\n\t\t}<\/span> elseif<\/span> (<\/span> 'vietnamese'<\/span> ==<\/span> $subset<\/span> )<\/span> {<\/span>\r\n\t\t\t$subsets<\/span> .<\/span>=<\/span> ',vietnamese'<\/span>;<\/span>\r\n\t\t}<\/span>\r\n\r\n\t\t\/\/ Hotlink Open Sans, for now\r\n<\/span>\t\t$open_sans_font_url<\/span> =<\/span> \"\/\/fonts.googleapis.com\/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets\";\r\n<\/span>\t}<\/span><\/pre>\n\u5f88\u660e\u663e\uff0c\u53ea\u8981\u5c06if ( 'off' !== _x( 'on', 'Open Sans font: on or off' ) ) {<\/code>\u8fd9\u4e2a\u5224\u65ad\u8bed\u53e5\u4e0d\u901a\u8fc7\u5c31\u884c\u4e86\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u53ea\u8981\u5c06\u4f4d\u4e8ewp-content\\languages\u76ee\u5f55\u4e0b\u91cc\u7684\u8bed\u8a00\u6587\u4ef6zh_CN.mo\u4fee\u6539\u4e00\u4e0b\u5c31\u884c\u4e86\u3002<\/p>\n\u9996\u5148\u6253\u5f00zh_CN.po\uff0c\u627e\u5230\u91cc\u9762\u7684msgctxt \"Open Sans font: on or off\"<\/code>\u8fd9\u4e00\u884c\uff0c\u5c06\u5176\u4e0b\u9762\u7684msgstr \"on\"<\/code>\u6539\u6210msgstr \"off\"<\/code>\uff0c\u4fdd\u5b58\uff0c\u6700\u540e\u5c06\u8fd9\u4e2a\u4fee\u6539\u540e\u7684zh_CN.po\u7f16\u8bd1\u6210zh_CN.mo\u2014\u2014\u4f60\u53ef\u4ee5\u4f7f\u7528\u5728\u7ebf\u7f16\u8bd1\u5de5\u5177http:\/\/tools.konstruktors.com\/<\/a>\uff0c\u6216\u8005\u4f7f\u7528Wordpress\u5b98\u65b9\u63a8\u8350\u7684\u5de5\u5177\uff1aPoEdit<\/a>\u3002<\/p>\n\u5c06\u7f16\u8bd1\u540e\u7684zh_CN.mo\u66ff\u6362\u539fzh_CN.mo\u3002<\/p>\n
\u4fee\u6539\u524d\uff1a<\/p>\n
#. translators: If there are characters in your language that are not supported\r\n<\/span>#. * by Open Sans, translate this to 'off'. Do not translate into your own\r\n<\/span>#. language.\r\n<\/span>#: wp-includes\/script-loader.php:564\r\n<\/span>msgctxt \"Open Sans font: on or off\"<\/span>\r\nmsgid \"on\"<\/span>\r\nmsgstr \"on\"<\/span>\r\n\t\r\n<\/pre>\n\u4fee\u6539\u540e\uff1a<\/p>\n
#. translators: If there are characters in your language that are not supported\r\n<\/span>#. * by Open Sans, translate this to 'off'. Do not translate into your own\r\n<\/span>#. language.\r\n<\/span>#: wp-includes\/script-loader.php:564\r\n<\/span>msgctxt \"Open Sans font: on or off\"<\/span>\r\nmsgid \"on\"<\/span>\r\nmsgstr \"off\"<\/span>\r\n\t\r\n<\/pre>\n