{"id":2861,"date":"2025-06-11T08:06:44","date_gmt":"2025-06-11T00:06:44","guid":{"rendered":"https:\/\/www.zhaozhao123.cn\/wpcms\/wpdt\/2861.html"},"modified":"2025-06-11T08:06:44","modified_gmt":"2025-06-11T00:06:44","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-wordpress-4-4-%e4%b8%ad%e5%b0%86%e8%af%84%e8%ae%ba%e6%96%87%e6%9c%ac%e5%ad%97%e6%ae%b5%e7%a7%bb%e5%88%b0%e5%ba%95%e9%83%a8","status":"publish","type":"post","link":"https:\/\/www.zhaozhao123.cn\/wpcms\/post\/2861.html","title":{"rendered":"\u5982\u4f55\u5728 WordPress 4.4 \u4e2d\u5c06\u8bc4\u8bba\u6587\u672c\u5b57\u6bb5\u79fb\u5230\u5e95\u90e8"},"content":{"rendered":"<div class=\"wp-block-columns p-0 border is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-columns px-4 py-3 border-bottom has-background is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\" style=\"background:linear-gradient(243deg,rgb(238,238,238) 0%,rgba(58,166,242,0.15) 100%)\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-6c531013 wp-block-group-is-layout-flex\">\r\n<figure class=\"wp-block-image size-thumbnail is-resized is-style-rounded is-style-rounded--1\"><img decoding=\"async\" src=\"https:\/\/www.zhaozhao123.cn\/myitems\/images\/sites16\/2025\/06\/dyA-1-400x300.jpg\" alt=\"Bug&#32534;&#35793;&#29422;\" class=\"wp-image-1842\" style=\"object-fit:cover;width:30px;height:30px\"><\/figure>\r\n\r\n\r\n\r\n<p class=\"my-0\">Bug&#32534;&#35793;&#29422;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-columns px-xl-5 px-4 py-xl-4 py-3 is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<p>&#35201;&#23558; WordPress 4.4 &#20013;&#30340;&#35780;&#35770;&#25991;&#26412;&#23383;&#27573;&#31227;&#21160;&#21040;&#39029;&#38754;&#24213;&#37096;&#65292;&#20320;&#38656;&#35201;&#20462;&#25913; WordPress &#30340;&#27169;&#26495;&#25991;&#20214;&#65292;&#36890;&#24120;&#26159; <code>comments.php<\/code> &#25991;&#20214;&#12290;&#36825;&#20010;&#25991;&#20214;&#20301;&#20110; <code>\/wp-content\/themes\/your-theme-name\/<\/code> &#30446;&#24405;&#19979;&#12290;<\/p>\n<h3>&#27493;&#39588; 1: &#22791;&#20221;&#25991;&#20214;<\/h3>\n<p>&#22312;&#24320;&#22987;&#20043;&#21069;&#65292;&#35831;&#30830;&#20445;&#22791;&#20221;&#25152;&#26377;&#37325;&#35201;&#25991;&#20214;&#21644;&#35774;&#32622;&#12290;&#36825;&#19968;&#27493;&#26159;&#20026;&#20102;&#38450;&#27490;&#22312;&#38169;&#35823;&#25805;&#20316;&#26102;&#25968;&#25454;&#20002;&#22833;&#12290;<\/p>\n<h3>&#27493;&#39588; 2: &#25214;&#21040;&#24182;&#32534;&#36753; <code>comments.php<\/code><\/h3>\n<p>&#25171;&#24320;&#25110;&#21019;&#24314;&#20320;&#30340;&#20027;&#39064;&#30446;&#24405;&#19979;&#30340; <code>comments.php<\/code> &#25991;&#20214;&#12290;&#22914;&#26524;&#20320;&#19981;&#30830;&#23450;&#22312;&#21738;&#37324;&#25214;&#21040;&#23427;&#65292;&#21487;&#20197;&#23581;&#35797;&#25628;&#32034;&ldquo;comments&rdquo;&#20851;&#38190;&#35789;&#12290;<\/p>\n<h3>&#27493;&#39588; 3: &#28155;&#21152;&#20197;&#19979;&#20195;&#30721;<\/h3>\n<p>&#22312; <code>comments.php<\/code> &#25991;&#20214;&#20013;&#28155;&#21152;&#20197;&#19979;&#20195;&#30721;&#65306;<\/p>\n<pre><code class=\"language-php\">&lt;div id=\"comment-bottom\"&gt;\n    &lt;?php comment_form(); ?&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<p>&#36825;&#27573;&#20195;&#30721;&#30340;&#20316;&#29992;&#26159;&#22312;&#39029;&#38754;&#24213;&#37096;&#26174;&#31034;&#35780;&#35770;&#34920;&#21333;&#12290;<\/p>\n<h3>&#27493;&#39588; 4: &#20445;&#23384;&#24182;&#28608;&#27963;&#26356;&#25913;<\/h3>\n<p>&#23436;&#25104;&#32534;&#36753;&#21518;&#65292;&#35760;&#24471;&#20445;&#23384;&#25991;&#20214;&#24182;&#22312;&#27983;&#35272;&#22120;&#19978;&#21047;&#26032;&#20197;&#26597;&#30475;&#26356;&#25913;&#29983;&#25928;&#12290;&#29616;&#22312;&#65292;&#35780;&#35770;&#34920;&#21333;&#24212;&#35813;&#20986;&#29616;&#22312;&#39029;&#38754;&#24213;&#37096;&#12290;<\/p>\n<h3>&#31034;&#20363;&#20195;&#30721;&#35299;&#26512;&#65306;<\/h3>\n<ul>\n<li><code>&lt;div id=\"comment-bottom\"&gt;<\/code>&#65306;&#23450;&#20041;&#20102;&#19968;&#20010;&#26032;&#30340; div &#20803;&#32032;&#65292;&#29992;&#20110;&#21253;&#35065;&#35780;&#35770;&#34920;&#21333;&#12290;<\/li>\n<li><code>&lt;?php comment_form(); ?&gt;<\/code>&#65306;&#36825;&#26159;&#19968;&#20010; WordPress &#20989;&#25968;&#35843;&#29992;&#65292;&#20250;&#21160;&#24577;&#29983;&#25104;&#35780;&#35770;&#34920;&#21333;&#12290;&#24403;&#29992;&#25143;&#28857;&#20987;&#25552;&#20132;&#25353;&#38062;&#25110;&#36890;&#36807; AJAX &#35831;&#27714;&#25552;&#20132;&#35780;&#35770;&#26102;&#65292;&#27492;&#20989;&#25968;&#20250;&#34987;&#25191;&#34892;&#12290;<\/li>\n<\/ul>\n<h3>&#25928;&#26524;&#39564;&#35777;&#65306;<\/h3>\n<p>&#35775;&#38382;&#20320;&#30340; WordPress &#32593;&#31449;&#65292;&#20320;&#24212;&#35813;&#33021;&#30475;&#21040;&#35780;&#35770;&#34920;&#21333;&#34987;&#27491;&#30830;&#22320;&#25918;&#32622;&#21040;&#20102;&#39029;&#38754;&#24213;&#37096;&#12290;<\/p>\n<h3>&#27880;&#24847;&#20107;&#39033;&#65306;<\/h3>\n<ul>\n<li>&#36825;&#20010;&#26041;&#27861;&#36866;&#29992;&#20110;&#22823;&#22810;&#25968;&#20027;&#39064;&#65292;&#20294;&#26576;&#20123;&#29305;&#23450;&#20027;&#39064;&#21487;&#33021;&#38656;&#35201;&#19981;&#21516;&#30340;&#26041;&#24335;&#26469;&#23454;&#29616;&#30456;&#21516;&#30340;&#25928;&#26524;&#12290;<\/li>\n<li>&#22914;&#26524;&#20320;&#36935;&#21040;&#20219;&#20309;&#38382;&#39064;&#65292;&#24314;&#35758;&#26597;&#38405;&#20320;&#30340;&#20027;&#39064;&#25991;&#26723;&#25110;&#32852;&#31995;&#20027;&#39064;&#24320;&#21457;&#32773;&#23547;&#27714;&#24110;&#21161;&#12290;<\/li>\n<\/ul>\n<p>&#36890;&#36807;&#19978;&#36848;&#27493;&#39588;&#65292;&#20320;&#21487;&#20197;&#36731;&#26494;&#22320;&#22312; WordPress 4.4 &#20013;&#35843;&#25972;&#35780;&#35770;&#25991;&#26412;&#23383;&#27573;&#30340;&#20301;&#32622;&#12290;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div><div class=\"wp-block-columns p-0 border is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-columns px-4 py-3 border-bottom has-background is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\" style=\"background:linear-gradient(243deg,rgb(238,238,238) 0%,rgba(58,166,242,0.15) 100%)\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-6c531013 wp-block-group-is-layout-flex\">\r\n<figure class=\"wp-block-image size-thumbnail is-resized is-style-rounded is-style-rounded--2\"><img decoding=\"async\" src=\"https:\/\/www.zhaozhao123.cn\/myitems\/images\/sites16\/2025\/06\/zp-400x300.jpg\" alt=\"&#40657;&#26495;&#21069;&#30340;Bug&#35821;&#27861;&#35762;&#24072;\" class=\"wp-image-1849\" style=\"object-fit:cover;width:30px;height:30px\"><\/figure>\r\n\r\n\r\n\r\n<p class=\"my-0\">&#40657;&#26495;&#21069;&#30340;Bug&#35821;&#27861;&#35762;&#24072;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-columns px-xl-5 px-4 py-xl-4 py-3 is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<p>&#22312; WordPress 4.4 &#20013;&#65292;&#29992;&#25143;&#21487;&#20197;&#20351;&#29992;&#20197;&#19979;&#27493;&#39588;&#26469;&#31227;&#38500;&#35780;&#35770;&#25991;&#26412;&#23383;&#27573;&#24182;&#23558;&#20854;&#25918;&#32622;&#21040;&#39029;&#38754;&#24213;&#37096;&#65306;<\/p>\n<ol>\n<li>\n<p>&#39318;&#20808;&#65292;&#22312;&#24744;&#30340;&#20027;&#39064;&#25991;&#20214;&#22841;&#20013;&#25214;&#21040;&ldquo;functions.php&rdquo;&#25991;&#20214;&#12290;<\/p>\n<\/li>\n<li>\n<p>&#22312;&#35813;&#25991;&#20214;&#20013;&#65292;&#28155;&#21152;&#20197;&#19979;&#20195;&#30721;&#65306;<\/p>\n<pre><code class=\"language-php\">add_filter( 'comment_text', function($text) {\nreturn '&lt;div class=\"comments-bottom\"&gt;';\n}, 999 );<\/code><\/pre>\n<\/li>\n<li>\n<p>&#28982;&#21518;&#65292;&#23558;&#27492;&#20195;&#30721;&#25554;&#20837;&#21040;&ldquo;functions.php&rdquo;&#25991;&#20214;&#30340;&#26411;&#23614;&#12290;<\/p>\n<\/li>\n<li>\n<p>&#25509;&#19979;&#26469;&#65292;&#24744;&#38656;&#35201;&#22312;&#24744;&#30340;&#20027;&#39064;&#20013;&#20462;&#25913;&#26679;&#24335;&#20197;&#36866;&#24212;&#26032;&#24067;&#23616;&#12290;&#24744;&#21487;&#20197;&#20351;&#29992; CSS &#25110;&#33258;&#23450;&#20041;&#31867;&#26469;&#23454;&#29616;&#36825;&#19968;&#28857;&#12290;<\/p>\n<\/li>\n<li>\n<p>&#26368;&#21518;&#65292;&#20445;&#23384;&#26356;&#25913;&#24182;&#22312; WordPress &#20027;&#39064;&#20013;&#24212;&#29992;&#36825;&#20123;&#26356;&#25913;&#20197;&#20351;&#26032;&#30340;&#24067;&#23616;&#29983;&#25928;&#12290;<\/p>\n<\/li>\n<\/ol>\n<p>&#20197;&#19979;&#26159;&#19978;&#36848;&#20195;&#30721;&#21644;&#26679;&#24335;&#30340;&#31034;&#20363;&#20195;&#30721;&#65306;<\/p>\n<h3>&#31034;&#20363;&#20195;&#30721;<\/h3>\n<h4>HTML &#32467;&#26500;<\/h4>\n<pre><code class=\"language-html\">&lt;div class=\"comments-bottom\"&gt;\n  &lt;!-- &#20854;&#20182;&#20869;&#23481; --&gt;\n&lt;\/div&gt;<\/code><\/pre>\n<h4>CSS &#26679;&#24335;<\/h4>\n<pre><code class=\"language-css\">.comments-bottom {\n  display: flex;\n  align-items: center;\n}<\/code><\/pre>\n<p>&#22312;&#36825;&#20010;&#20363;&#23376;&#20013;&#65292;&#25105;&#20204;&#21019;&#24314;&#20102;&#19968;&#20010;&#21517;&#20026;&ldquo;comments-bottom&rdquo;&#30340;CSS&#31867;&#65292;&#29992;&#20110;&#35843;&#25972;&#35780;&#35770;&#21306;&#22495;&#30340;&#26174;&#31034;&#26041;&#24335;&#12290;<code>display: flex;<\/code> &#23646;&#24615;&#20351;&#24471;&#35780;&#35770;&#21306;&#21464;&#20026;&#19968;&#20010;&#24377;&#24615;&#23481;&#22120;&#65292;&#20174;&#32780;&#33021;&#22815;&#26681;&#25454;&#20869;&#23481;&#33258;&#21160;&#35843;&#25972;&#20854;&#22823;&#23567;&#12290;<code>align-items: center;<\/code> &#23646;&#24615;&#30830;&#20445;&#20102;&#35780;&#35770;&#21306;&#20013;&#30340;&#25152;&#26377;&#20869;&#23481;&#37117;&#23621;&#20013;&#23545;&#40784;&#12290;<\/p>\n<p>&#36890;&#36807;&#20197;&#19978;&#26041;&#27861;&#65292;&#24744;&#21487;&#20197;&#36731;&#26494;&#22320;&#22312; WordPress 4.4 &#20013;&#23558;&#35780;&#35770;&#25991;&#26412;&#23383;&#27573;&#31227;&#21160;&#21040;&#39029;&#38754;&#24213;&#37096;&#12290;&#22914;&#26524;&#24744;&#26377;&#20219;&#20309;&#30097;&#38382;&#25110;&#38656;&#35201;&#36827;&#19968;&#27493;&#30340;&#24110;&#21161;&#65292;&#35831;&#38543;&#26102;&#21578;&#35785;&#25105;&#65281;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Bug&#32534;&#35793;&#29422; &#35201;&#23558; WordPress 4.4 &#20013;&#30340;&#35780;&#35770;&#25991;&#26412;&#23383;&#27573;&#31227;&#21160;&#21040;&#39029;&#038;#387..<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[59],"tuisongtax":[],"class_list":["post-2861","post","type-post","status-publish","format-standard","hentry","category-wpdt","tag-pzjc"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/posts\/2861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/comments?post=2861"}],"version-history":[{"count":0,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/posts\/2861\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/media?parent=2861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/categories?post=2861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/tags?post=2861"},{"taxonomy":"tuisongtax","embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/tuisongtax?post=2861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}