即使网站未被触动,页脚小部件也会在几天后自行消失。这之前发生过4-5次,我没有看到任何小部件事件的安全审计日志,也没有任何被感染的恶意软件。原因可能是什么?
高级主题开发人员没有解决方案,因为他们给出了常见的“添加到bug列表”回复。
Normal footer:

Footer widgets disappeared: 
我有一个
Development Site 用于检查问题。
The least security check:

添加为其他页脚列而不是主题的默认4添加的代码。
<?php
add_action( \'wp_enqueue_scripts\', \'stockie_child_local_enqueue_parent_styles\' );
function stockie_child_local_enqueue_parent_styles() {
wp_enqueue_style( \'parent-style\', get_template_directory_uri() . \'/style.css\' );
}
// Add Footer Columns 5 and 6
function add_additional_footer() {
register_sidebar( array(
\'name\' => esc_html__( \'Footer column 5\', \'stockie\' ),
\'id\' => \'stockie-sidebar-footer-5\',
\'before_title\' => \'<h3 class="title widget-title">\',
\'after_title\' => \'</h3>\',
));
register_sidebar( array(
\'name\' => esc_html__( \'Footer column 6\', \'stockie\' ),
\'id\' => \'stockie-sidebar-footer-6\',
\'before_title\' => \'<h3 class="title widget-title">\',
\'after_title\' => \'</h3>\',
));
}
add_action( \'widgets_init\', \'add_additional_footer\');