WP_Widget_Recent_Comments::Recent_Comments_style()

输出“最近的评论”小部件的默认样式。

来源

公共函数recent_comments_style(){/***过滤“最近的评论”默认小部件样式。**@自3.1.0起**@param bool$active小部件是否处于活动状态。默认为true。*@param string$id_base小部件id。*/if(!current_theme_supports('widgets')//临时黑客#14876。|| ! 应用过滤器('show_recent_comments_widget_style',true,$this->id_base){回报;}$type_attr=current_theme_supports('html5','style')?'':'type=“text/css”';打印('<style%s>.recentcomments a{display:inline!important;padding:0!importent;margin:0!重要;}</style>',$类型属性);}

挂钩

应用筛选器('show_recent_comments_widget_style',布尔 $活动,一串 $id基础 )

过滤“最近的评论”默认小部件样式。

变更日志

版本描述
2.8.0介绍。

用户贡献的笔记

你必须登录在能够发表注释或反馈之前。