Ticket #21017: dashboard.php.patch

File dashboard.php.patch, 691 bytes (added by devgav, 11 months ago)
  • wp-admin/includes/dashboard.php

     
    763763        if ( is_wp_error($rss) ) { 
    764764                if ( is_admin() || current_user_can('manage_options') ) { 
    765765                        echo '<p>'; 
    766                         printf(__('<strong>RSS Error</strong>: %s'), $rss->get_error_message()); 
     766                        if ( !WP_DEBUG ) { 
     767                                echo  __('Sorry, there has been an error loading the Incoming Links widget right now. Please try again later.'); 
     768                        } else { 
     769                                printf(__('<strong>RSS Error</strong>: %s'), $rss->get_error_message()); 
     770                        } 
    767771                        echo '</p>'; 
    768772                } 
    769773                return;