{"id":10152,"date":"2022-06-06T23:40:46","date_gmt":"2022-06-06T15:40:46","guid":{"rendered":"https:\/\/blog.hoyo.idv.tw\/?p=10152"},"modified":"2024-10-09T11:48:08","modified_gmt":"2024-10-09T03:48:08","slug":"wordpress-6","status":"publish","type":"post","link":"https:\/\/blog.hoyo.idv.tw\/?p=10152","title":{"rendered":"WordPress 6"},"content":{"rendered":"<p>--<\/p>\n<h2>\u524d\u8a00<\/h2>\n<p>\u5982\u679c\u4e0d\u662f\u65b0\u4e3b\u6a5f PHP 8.1 \u6211\u4e5f\u4e0d\u6703\u628a WordPress \u5f9e 4.9 \u5347\u7d1a\u3002<\/p>\n<ol>\n<li>\u4e0b\u8f09 6.0 \u58d3\u7e2e\u6a94\uff0c\u9084\u539f\u5230\u539f\u7db2\u7ad9\u76ee\u9304<\/li>\n<li>\u767b\u5165\u5f8c\u53f0\u628a\u8cc7\u6599\u5eab\u8655\u7406\u4e00\u4e0b\uff0c\u6309\u4e00\u4e0b\u6309\u9215\u5c31\u597d<\/li>\n<li>\u958b\u59cb\u4f7f\u7528<\/li>\n<\/ol>\n<p>\u8a66\u7528\u4e00\u4e0b\u5340\u584a\u7de8\u8f2f\u771f\u7684\u7528\u4e0d\u6163\uff0c\u6240\u4ee5\u5b89\u88dd\u4e86\u4ee5\u4e0b 2 \u500b plugin \u5c31\u53ef\u4ee5\u6062\u5fa9\u4ee5\u524d\u7684\u4f7f\u7528\u7fd2\u6163\u4e86<\/p>\n<p>--<\/p>\n<h2>Plugins<\/h2>\n<ul>\n<li><a href=\"https:\/\/tw.wordpress.org\/plugins\/classic-editor\/\" target=\"_blank\" rel=\"noopener\">Classic Editor<\/a> - \u56de\u5230\u50b3\u7d71\u7de8\u8f2f\u5668\uff0c\u65b0\u7684\u5340\u584a\u7de8\u8f2f\u5668\u6211\u4e0d\u6703\u7528<\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/urvanov-syntax-highlighter\/\" target=\"_blank\" rel=\"noopener\">Urvanov Syntax Highlighter<\/a> - \u7a0b\u5f0f\u78bc\u9ad8\u4eae<\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/wp-cerber\/\" target=\"_blank\" rel=\"noopener\">WP Cerber Security<\/a> - \u9632\u6b62 WordPress \u906d\u5230\u4e0d\u7576\u4f7f\u7528\uff0c\u4f8b\u5982\u6a5f\u5668\u4eba\u7559\u8a00<\/li>\n<\/ul>\n<p>--<\/p>\n<h2>\u53c3\u8003\u8cc7\u6e90<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.kevinmuldoon.com\/free-syntax-highlighter-wordpress-plugins\/\" target=\"_blank\" rel=\"noopener\">11 Free Syntax Highlighter WordPress Plugins to Make Your Code Stand Out<\/a><\/li>\n<\/ul>\n<p>--<\/p>\n<h2>\u7de8\u8f2f\u5668 CSS<\/h2>\n<p>wp-content\\themes\\xxx\\editor-style.css<\/p>\n<p>\u5c07\u524d\u53f0 CSS \u8a2d\u5b9a\u8907\u88fd\u5230\u4ee5\u4e0a\u8def\u5f91\u5373\u53ef<\/p>\n<p>--<\/p>\n<h2>\u8b93 -- \u4e0d\u6703\u8b8a\u6210 \u2014<\/h2>\n<ul>\n<li><a href=\"https:\/\/blog.dreambreakerx.com\/2018\/08\/disable-wptexturize-in-wordpress\/\" target=\"_blank\" rel=\"noopener\">WordPress \u95dc\u9589 wptexturize \u529f\u80fd\u907f\u514d\u7b26\u865f\u88ab\u8f49\u63db<\/a><\/li>\n<\/ul>\n<p>\u4e00\u500b blog \u70ba\u4ec0\u9ebc\u8981\u5ad0\u5c41\u80a1\u505a\u81ea\u52d5\u8f49\u63db\u7684\u4e8b\u60c5\uff0c\u5f88\u8166\u6b98<\/p>\n<p>\u5c07\u4ee5\u4e0b\u5167\u5bb9\u5b58\u653e\u5728 wp-content\\plugins \u5f8c\u555f\u7528\u5373\u53ef\u505c\u6b62\u9019\u7a2e\u767d\u75f4\u884c\u70ba<\/p>\n<pre class=\"lang:default decode:true\">&lt;?php\r\n\/*\r\nPlugin Name: Remove the wptexturize filter\r\n*\/\r\nadd_filter( 'run_wptexturize', '__return_false' );<\/pre>\n<p>--<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"10152\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;1,020&nbsp;total views<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>-- \u524d\u8a00 \u5982\u679c\u4e0d\u662f\u65b0\u4e3b\u6a5f P...<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"10152\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;1,020&nbsp;total views<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[70],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/10152"}],"collection":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10152"}],"version-history":[{"count":6,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/10152\/revisions"}],"predecessor-version":[{"id":11125,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/10152\/revisions\/11125"}],"wp:attachment":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10152"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10152"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10152"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}