WordPress.org

Make WordPress Core

Ticket #21682: rewrite.php.patch

File rewrite.php.patch, 741 bytes (added by sanchothefat, 10 months ago)

Patch for rewrite endpoints being wiped in certain situations

  • rewrite.php

     
    615615         * @access private 
    616616         * @var array 
    617617         */ 
    618         var $endpoints; 
     618        var $endpoints = array(); 
    619619 
    620620        /** 
    621621         * Whether to write every mod_rewrite rule for WordPress into the .htaccess file. 
     
    19571957         * @access public 
    19581958         */ 
    19591959        function init() { 
    1960                 $this->extra_rules = $this->non_wp_rules = $this->endpoints = array(); 
     1960                $this->extra_rules = $this->non_wp_rules = array(); 
    19611961                $this->permalink_structure = get_option('permalink_structure'); 
    19621962                $this->front = substr($this->permalink_structure, 0, strpos($this->permalink_structure, '%')); 
    19631963                $this->root = '';