Make WordPress Core

Ticket #28874: 28874.patch

File 28874.patch, 1.7 KB (added by michalzuber, 11 years ago)

Property rename

  • src/wp-includes/rewrite.php

     
    11801180         * Retrieve the comment feed permalink structure.
    11811181         *
    11821182         * The permalink structure is root property, comment base property, feed
    1183          * base and finally '/%feed%'. Will set the comment_feed_structure property
     1183         * base and finally '/%feed%'. Will set the comments_feed_structure property
    11841184         * and then return it without attempting to set the value again.
    11851185         *
    11861186         * @since 1.5.0
     
    11891189         * @return string|bool False if not found. Permalink structure string.
    11901190         */
    11911191        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;
    11941194
    11951195                if (empty($this->permalink_structure)) {
    1196                         $this->comment_feed_structure = '';
     1196                        $this->comments_feed_structure = '';
    11971197                        return false;
    11981198                }
    11991199
    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%';
    12011201
    1202                 return $this->comment_feed_structure;
     1202                return $this->comments_feed_structure;
    12031203        }
    12041204
    12051205        /**
     
    20852085                unset($this->page_structure);
    20862086                unset($this->search_structure);
    20872087                unset($this->feed_structure);
    2088                 unset($this->comment_feed_structure);
     2088                unset($this->comments_feed_structure);
    20892089                $this->use_trailing_slashes = ( '/' == substr($this->permalink_structure, -1, 1) );
    20902090
    20912091                // Enable generic rules for pages if permalink structure doesn't begin with a wildcard.