Ticket #10757: 10757.patch
File 10757.patch, 1.2 KB (added by , 14 years ago) |
---|
-
wp-includes/rss.php
112 112 } 113 113 elseif ( $el == 'rss' ) { 114 114 $this->feed_type = RSS; 115 $this->feed_version = $attrs['version'];115 $this->feed_version = isset($attrs['version']) ? $attrs['version'] : ''; 116 116 } 117 117 elseif ( $el == 'feed' ) { 118 118 $this->feed_type = ATOM; 119 $this->feed_version = $attrs['version'];119 $this->feed_version = isset($attrs['version']) ? $attrs['version'] : ''; 120 120 $this->inchannel = true; 121 121 } 122 122 return; … … 336 336 } 337 337 } 338 338 elseif ( $this->is_rss() ) { 339 $this->channel['tagline'] = $this->channel['description'];339 $this->channel['tagline'] = isset($this->channel['description']) ? $this->channel['description'] : ''; 340 340 for ( $i = 0; $i < count($this->items); $i++) { 341 341 $item = $this->items[$i]; 342 342 if ( isset($item['description'])) … … 490 490 } 491 491 else { 492 492 $errormsg = "Failed to fetch $url. "; 493 if ( $resp->error ) {493 if ( isset($resp->error) && $resp->error ) { 494 494 # compensate for Snoopy's annoying habbit to tacking 495 495 # on '\n' 496 496 $http_error = substr($resp->error, 0, -2);