Ticket #28874: 28874.patch
File 28874.patch, 1.7 KB (added by , 11 years ago) |
---|
-
src/wp-includes/rewrite.php
1180 1180 * Retrieve the comment feed permalink structure. 1181 1181 * 1182 1182 * The permalink structure is root property, comment base property, feed 1183 * base and finally '/%feed%'. Will set the comment _feed_structure property1183 * base and finally '/%feed%'. Will set the comments_feed_structure property 1184 1184 * and then return it without attempting to set the value again. 1185 1185 * 1186 1186 * @since 1.5.0 … … 1189 1189 * @return string|bool False if not found. Permalink structure string. 1190 1190 */ 1191 1191 public function get_comment_feed_permastruct() { 1192 if ( isset($this->comment _feed_structure) )1193 return $this->comment _feed_structure;1192 if ( isset($this->comments_feed_structure) ) 1193 return $this->comments_feed_structure; 1194 1194 1195 1195 if (empty($this->permalink_structure)) { 1196 $this->comment _feed_structure = '';1196 $this->comments_feed_structure = ''; 1197 1197 return false; 1198 1198 } 1199 1199 1200 $this->comment _feed_structure = $this->root . $this->comments_base . '/' . $this->feed_base . '/%feed%';1200 $this->comments_feed_structure = $this->root . $this->comments_base . '/' . $this->feed_base . '/%feed%'; 1201 1201 1202 return $this->comment _feed_structure;1202 return $this->comments_feed_structure; 1203 1203 } 1204 1204 1205 1205 /** … … 2085 2085 unset($this->page_structure); 2086 2086 unset($this->search_structure); 2087 2087 unset($this->feed_structure); 2088 unset($this->comment _feed_structure);2088 unset($this->comments_feed_structure); 2089 2089 $this->use_trailing_slashes = ( '/' == substr($this->permalink_structure, -1, 1) ); 2090 2090 2091 2091 // Enable generic rules for pages if permalink structure doesn't begin with a wildcard.