Changeset 52031
- Timestamp:
- 11/07/2021 11:03:47 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/rtl.css
r46586 r52031 228 228 .widget ul { 229 229 margin: 0; 230 } 231 232 .widget_rss .widget-title .rsswidget:first-child:not(.rss-widget-title) { 233 float: left; 230 234 } 231 235 -
trunk/src/wp-content/themes/twentyseventeen/style.css
r51808 r52031 2663 2663 /* RSS Widget */ 2664 2664 2665 .widget_rss .widget-title .rsswidget:first-child {2665 .widget_rss .widget-title .rsswidget:first-child:not(.rss-widget-title) { 2666 2666 float: right; 2667 2667 } -
trunk/src/wp-content/themes/twentytwenty/style-rtl.css
r52023 r52031 4287 4287 /* Widget: RSS ------------------------------- */ 4288 4288 4289 .widget_rss .widget-title a.rsswidget:first-of-type {4289 .widget_rss .widget-title a.rsswidget:first-of-type:not(.rss-widget-title) { 4290 4290 display: none; 4291 4291 } -
trunk/src/wp-content/themes/twentytwenty/style.css
r52023 r52031 4321 4321 /* Widget: RSS ------------------------------- */ 4322 4322 4323 .widget_rss .widget-title a.rsswidget:first-of-type {4323 .widget_rss .widget-title a.rsswidget:first-of-type:not(.rss-widget-title) { 4324 4324 display: none; 4325 4325 } -
trunk/src/wp-includes/widgets/class-wp-widget-rss.php
r51967 r52031 87 87 $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); 88 88 89 $url = strip_tags( $url );90 $icon = includes_url( 'images/rss.png' );91 89 if ( $title ) { 92 $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>'; 90 $feed_link = ''; 91 $feed_url = strip_tags( $url ); 92 $feed_icon = includes_url( 'images/rss.png' ); 93 $feed_link = sprintf( 94 '<a class="rsswidget rss-widget-feed" href="%1$s"><img class="rss-widget-icon" style="border:0" width="14" height="14" src="%2$s" alt="%3$s"%4$s /></a> ', 95 esc_url( $feed_url ), 96 esc_url( $feed_icon ), 97 esc_attr__( 'RSS' ), 98 ( wp_lazy_loading_enabled( 'img', 'rss_widget_feed_icon' ) ? ' loading="lazy"' : '' ) 99 ); 100 101 /** 102 * Filters the classic RSS widget's feed icon link. 103 * 104 * Themes can remove the icon link by using `add_filter( 'rss_widget_feed_link', '__return_false' );`. 105 * 106 * @since 5.9.0 107 * 108 * @param string $feed_link HTML for link to RSS feed. 109 * @param array $instance Array of settings for the current widget. 110 */ 111 $feed_link = apply_filters( 'rss_widget_feed_link', $feed_link, $instance ); 112 113 $title = $feed_link . '<a class="rsswidget rss-widget-title" href="' . esc_url( $link ) . '">' . esc_html( $title ) . '</a>'; 93 114 } 94 115 -
trunk/tests/phpunit/tests/rest-api/rest-widgets-controller.php
r52016 r52031 395 395 'id_base' => 'rss', 396 396 'sidebar' => 'sidebar-1', 397 'rendered' => '<a class="rsswidget " href="https://wordpress.org/news/feed"><img class="rss-widget-icon" style="border:0" width="14" height="14" src="http://example.org/wp-includes/images/rss.png" alt="RSS" /></a> <a class="rsswidget" href="https://wordpress.org/news">RSS test</a><ul><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/12/introducing-learn-wordpress/\'>Introducing Learn WordPress</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/12/simone/\'>WordPress 5.6 “Simone”</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/12/state-of-the-word-2020/\'>State of the Word 2020</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/12/the-month-in-wordpress-november-2020/\'>The Month in WordPress: November 2020</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/12/wordpress-5-6-release-candidate-2/\'>WordPress 5.6 Release Candidate 2</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/11/wordpress-5-6-release-candidate/\'>WordPress 5.6 Release Candidate</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/11/wordpress-5-6-beta-4/\'>WordPress 5.6 Beta 4</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/11/wordpress-5-6-beta-3/\'>WordPress 5.6 Beta 3</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/11/the-month-in-wordpress-october-2020/\'>The Month in WordPress: October 2020</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/10/wordpress-5-5-3-maintenance-release/\'>WordPress 5.5.3 Maintenance Release</a></li></ul>',397 'rendered' => '<a class="rsswidget rss-widget-feed" href="https://wordpress.org/news/feed"><img class="rss-widget-icon" style="border:0" width="14" height="14" src="http://example.org/wp-includes/images/rss.png" alt="RSS" loading="lazy" /></a> <a class="rsswidget rss-widget-title" href="https://wordpress.org/news">RSS test</a><ul><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/12/introducing-learn-wordpress/\'>Introducing Learn WordPress</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/12/simone/\'>WordPress 5.6 “Simone”</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/12/state-of-the-word-2020/\'>State of the Word 2020</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/12/the-month-in-wordpress-november-2020/\'>The Month in WordPress: November 2020</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/12/wordpress-5-6-release-candidate-2/\'>WordPress 5.6 Release Candidate 2</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/11/wordpress-5-6-release-candidate/\'>WordPress 5.6 Release Candidate</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/11/wordpress-5-6-beta-4/\'>WordPress 5.6 Beta 4</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/11/wordpress-5-6-beta-3/\'>WordPress 5.6 Beta 3</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/11/the-month-in-wordpress-october-2020/\'>The Month in WordPress: October 2020</a></li><li><a class=\'rsswidget\' href=\'https://wordpress.org/news/2020/10/wordpress-5-5-3-maintenance-release/\'>WordPress 5.5.3 Maintenance Release</a></li></ul>', 398 398 ), 399 399 array( -
trunk/tests/phpunit/tests/widgets/wpWidgetRss.php
r51493 r52031 95 95 'when url is given' => array( 96 96 'url' => 'https://wordpress.org/news/feed/', 97 '<section id="widget_rss-5" class="widget widget_rss"><h2><a class="rsswidget " href="https://wordpress.org/news/feed/">',97 '<section id="widget_rss-5" class="widget widget_rss"><h2><a class="rsswidget rss-widget-feed" href="https://wordpress.org/news/feed/">', 98 98 ), 99 99 );
Note: See TracChangeset
for help on using the changeset viewer.