我在调试中收到消息。PHP日志已弃用:在PHP的未来版本中,与类同名的方法将不会是构造函数;WP\\U RSSjb在/home/dccomp/competitions中有一个已弃用的构造函数。com/wp-content/plugins/rss-just-better/rss-just-better。php第57行。
如何修改此内容?这条线是
class WP_RSSjb extends WP_Widget {
/**
* Widget setup.
*/
function WP_RSSjb() {
/* Widget settings. */
$widget_ops = array( \'classname\' => \'rssjustbetter\', \'description\' => __(\'A customizable list of feed items given: URL and number of displayable items. Also available as shortcode. Compatible with RSS vers. 0.91, 0.92 and 2.0 & Atom 1.0.\', \'RSSjb\') );
/* Widget control settings. */
$control_ops = array( \'width\' => 300, \'height\' => 350, \'id_base\' => \'rss-just-better\' );
/* Create the widget. */
parent::__construct( \'rss-just-better\', __(\'RSS Just Better\', \'RSSjb\'), $widget_ops, $control_ops );
}
谢谢你的帮助。