RSS Widget: add a class, `rss-widget-icon`, to the RSS icon to allow devs to hide it. Not going to remove to not break visual BC.
Fixes #22010. Built from https://develop.svn.wordpress.org/trunk@34683 git-svn-id: http://core.svn.wordpress.org/trunk@34647 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f2bd17193d
commit
f77499ed22
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-34682';
|
||||
$wp_version = '4.4-alpha-34683';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
@ -76,7 +76,7 @@ class WP_Widget_RSS extends WP_Widget {
|
|||
$url = strip_tags( $url );
|
||||
$icon = includes_url( 'images/rss.png' );
|
||||
if ( $title )
|
||||
$title = '<a class="rsswidget" href="' . esc_url( $url ) . '"><img style="border:0" width="14" height="14" src="' . esc_url( $icon ) . '" alt="RSS" /></a> <a class="rsswidget" href="' . esc_url( $link ) . '">"'. esc_html( $title ) .'"</a>';
|
||||
$title = '<a class="rsswidget" href="' . esc_url( $url ) . '"><img class="rss-widget-icon" style="border:0" width="14" height="14" src="' . esc_url( $icon ) . '" alt="RSS" /></a> <a class="rsswidget" href="' . esc_url( $link ) . '">"'. esc_html( $title ) .'"</a>';
|
||||
|
||||
echo $args['before_widget'];
|
||||
if ( $title ) {
|
||||
|
|
Loading…
Reference in New Issue