wphooks.info - show_recent_comments_widget_style

show_recent_comments_widget_style

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/widgets/class-wp-widget-recent-comments.php:
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
	public function recent_comments_style() {
		/**
		 * Filters the Recent Comments default widget styles.
		 *
		 * @since 3.1.0
		 *
		 * @param bool   $active  Whether the widget is active. Default true.
		 * @param string $id_base The widget ID.
		 */
		if ( ! current_theme_supports( 'widgets' ) // Temp hack #14876
			|| ! apply_filters( 'show_recent_comments_widget_style', true, $this->id_base ) ) {
			return;
		}
		?>
		<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
		<?php
	}

	/**
	 * Outputs the content for the current Recent Comments widget instance.