Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php WordPress v4.4更新后,get_注释无法正常工作_Php_Wordpress_Function_Wordpress Theming_Comments - Fatal编程技术网

Php WordPress v4.4更新后,get_注释无法正常工作

Php WordPress v4.4更新后,get_注释无法正常工作,php,wordpress,function,wordpress-theming,comments,Php,Wordpress,Function,Wordpress Theming,Comments,我刚刚在我的网站上发现了一个在v4.4更新后的东西。在我的博客页面中,我使用2个函数获取评论 首先我使用 wp_list_comments( array( "callback" => "checkout_comment", "type" => "comment") ); 仅获取评论。然后,我通过使用运行计数检查是否存在任何trackback $trackback_count = get_comments( array(

我刚刚在我的网站上发现了一个在v4.4更新后的东西。在我的博客页面中,我使用2个函数获取评论

首先我使用

 wp_list_comments( array( "callback" => "checkout_comment", "type" => "comment") );
仅获取评论。然后,我通过使用运行计数检查是否存在任何trackback

$trackback_count =  get_comments( array(
                                                    'status' => 'approve',
                                                    'post_id'=> get_the_ID(), 
                                                    'type'=> 'pings', 
                                                    'count' => true)
                                                 );
如果do存在,我会像这样显示trackback/pingsback

wp_list_comments( array( "callback" => "checkout_comment", "type" => "pings", "reply_text" => null, "format" => "html5") );
现在,在v4.4更新之后,注释显示良好,但是trackbacks列表没有显示

谁能告诉我为什么?我可能需要更改什么来修复此问题