Make WordPress Core

Ticket #59548: 59548.1.patch

File 59548.1.patch, 1.0 KB (added by sabernhardt, 13 months ago)

removing code that was commented out and the $errormsg variable in _response_to_rss()

  • src/wp-includes/rss.php

     
    5151        var $current_field              = '';
    5252        var $current_namespace  = false;
    5353
    54         //var $ERROR = "";
    55 
    5654        var $_CONTENT_CONSTRUCTS = array('content', 'summary', 'info', 'title', 'tagline', 'copyright');
    5755
    5856        /**
     
    411409        init();
    412410
    413411        if ( !isset($url) ) {
    414                 // error("fetch_rss called without a url");
    415412                return false;
    416413        }
    417414
     
    423420                        return _response_to_rss( $resp );
    424421                }
    425422                else {
    426                         // error("Failed to fetch $url and cache is off");
    427423                        return false;
    428424                }
    429425        }
     
    525521                }
    526522
    527523                // else we totally failed
    528                 // error( $errormsg );
    529524
    530525                return false;
    531526
     
    616611                return $rss;
    617612        } // else construct error message
    618613        else {
    619                 $errormsg = "Failed to parse RSS file.";
    620 
    621                 if ($rss) {
    622                         $errormsg .= " (" . $rss->ERROR . ")";
    623                 }
    624                 // error($errormsg);
    625 
    626614                return false;
    627615        } // end if ($rss and !$rss->error)
    628616}