Make WordPress Core

Ticket #59548: 59548.patch

File 59548.patch, 1.2 KB (added by upadalavipul, 17 months ago)
  • rss.php

     
    498498                                }
    499499                        }
    500500                        else {
    501                                 $errormsg = "Failed to fetch $url. ";
     501                                //$errormsg = "Failed to fetch $url. ";
    502502                                if ( $resp->error ) {
    503503                                        # compensate for Snoopy's annoying habit to tacking
    504504                                        # on '\n'
    505                                         $http_error = substr($resp->error, 0, -2);
    506                                         $errormsg .= "(HTTP Error: $http_error)";
     505                                        //$http_error = substr($resp->error, 0, -2);
     506                                        //$errormsg .= "(HTTP Error: $http_error)";
    507507                                }
    508508                                else {
    509                                         $errormsg .=  "(HTTP Response: " . $resp->response_code .')';
     509                                        //$errormsg .=  "(HTTP Response: " . $resp->response_code .')';
    510510                                }
    511511                        }
    512512                }
    513513                else {
    514                         $errormsg = "Unable to retrieve RSS file for unknown reasons.";
     514                        //$errormsg = "Unable to retrieve RSS file for unknown reasons.";
    515515                }
    516516
    517517                // else fetch failed
     
    616616                return $rss;
    617617        } // else construct error message
    618618        else {
    619                 $errormsg = "Failed to parse RSS file.";
     619                // $errormsg = "Failed to parse RSS file.";
    620620
    621                 if ($rss) {
    622                         $errormsg .= " (" . $rss->ERROR . ")";
    623                 }
     621                // if ($rss) {
     622                //      $errormsg .= " (" . $rss->ERROR . ")";
     623                // }
    624624                // error($errormsg);
    625625
    626626                return false;