很多童鞋發現升級到WordPress3.4.2版后,添加自定義欄目按鈕失效,這可能是WP所有版本中最明顯的BUG,瘋狂升級的結果。
雖然對此BUG未作出響應,不過非的修復方法已有人給出,你可以不必等待版本升級,先使用該插件臨時解決該問題。
插件下載 wordpressextendpluginshotfix
上傳空間插件目錄并啟用即可。
或者將下面代碼添加到主題的functions模版中
- PluginName:FixCustomFieldsinWP3.4.2
- Version:0.1
- PluginURI:core.trac.wordpressticket21829
- Description:ImplementsaworkaroundforaddingandupdatingcustomfieldsinWordPress3.4.2.
- Author:SergeyBiryukov
- AuthorURI:profiles.wordpresssergeybiryukov
- functionfix_custom_fields_in_wp342{
- global$wp_version,$hook_suffix;
- if'3.4.2'==$wp_versionin_array$hook_suffix,array'post','postnew':?
- scripttype="textjavascript"
- jQuerydocument.delegate'#addmetasub,#updatemeta','hoverfocus',function{
- jQuerythis.attr'id','metaaddsubmit';
- };
- script
- ?php
- endif;
- }
- add_action'admin_print_footer_scripts','fix_custom_fields_in_wp342';
相信很快會修正該BUG。
新聞熱點
疑難解答
圖片精選