Changeset 10742 for trunk/wp-includes/widgets.php
- Timestamp:
- 03/08/2009 05:01:26 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/widgets.php
r10739 r10742 1765 1765 $show_author = (int) $show_author; 1766 1766 $show_date = (int) $show_date; 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 } 1767 1773 1768 1774 if ( $inputs['url'] ) : … … 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()));
Note: See TracChangeset
for help on using the changeset viewer.