Ticket #8495: 8495.3.diff
| File 8495.3.diff, 944 bytes (added by DD32, 4 years ago) |
|---|
-
wp-includes/widgets.php
1765 1765 $show_author = (int) $show_author; 1766 1766 $show_date = (int) $show_date; 1767 1767 1768 if ( !empty($error) ) { 1769 $message = sprintf( __('Error in RSS Widget: %s'), $error); 1770 echo "<div class='error'><p>$message</p></div>"; 1771 echo "<p class='hide-if-no-js'><strong>$message</strong></p>"; 1772 } 1773 1768 1774 if ( $inputs['url'] ) : 1769 1775 ?> 1770 1776 <p> … … 1854 1860 $error = false; 1855 1861 $link = ''; 1856 1862 if ( is_wp_error($rss) ) { 1857 $url = wp_specialchars(__('Error: could not find an RSS or ATOM feed at that URL.'), 1); 1858 $error = sprintf(__('Error in RSS %1$d'), $widget_number ); 1863 $error = $rss->get_error_message(); 1859 1864 } else { 1860 1865 $link = clean_url(strip_tags($rss->get_permalink())); 1861 1866 while ( stristr($link, 'http') != $link )
