Ticket #59548: 59548.1.patch
File 59548.1.patch, 1.0 KB (added by , 13 months ago) |
---|
-
src/wp-includes/rss.php
51 51 var $current_field = ''; 52 52 var $current_namespace = false; 53 53 54 //var $ERROR = "";55 56 54 var $_CONTENT_CONSTRUCTS = array('content', 'summary', 'info', 'title', 'tagline', 'copyright'); 57 55 58 56 /** … … 411 409 init(); 412 410 413 411 if ( !isset($url) ) { 414 // error("fetch_rss called without a url");415 412 return false; 416 413 } 417 414 … … 423 420 return _response_to_rss( $resp ); 424 421 } 425 422 else { 426 // error("Failed to fetch $url and cache is off");427 423 return false; 428 424 } 429 425 } … … 525 521 } 526 522 527 523 // else we totally failed 528 // error( $errormsg );529 524 530 525 return false; 531 526 … … 616 611 return $rss; 617 612 } // else construct error message 618 613 else { 619 $errormsg = "Failed to parse RSS file.";620 621 if ($rss) {622 $errormsg .= " (" . $rss->ERROR . ")";623 }624 // error($errormsg);625 626 614 return false; 627 615 } // end if ($rss and !$rss->error) 628 616 }