几天前我安装了GD Star rating插件,现在我想添加新帖子,但出现错误:
Fatal error: Call to a member function render_article() on a non-object in /wp-content/plugins/gd-star-rating/code/class.php on line 266
第 266 行是:
return $this->f->render_article($post, $userdata, $override);
所有功能是:
function shortcode_starratingblock($atts = array()) {
global $userdata;
$user_id = is_object($userdata) ? $userdata->ID : 0;
$this->cache_posts($user_id);
$override = shortcode_atts($this->default_shortcode_starrater, $atts);
if ($override["post"] == 0) global $post;
else $post = get_post($override["post"]);
return $this->f->render_article($post, $userdata, $override);
}