WordPress.org

Make WordPress Core

Ticket #14201: 14201.patch

File 14201.patch, 590 bytes (added by hakre, 8 years ago)

URLs need encoding (see RFC)

  • wp-includes/rewrite.php

     
    10301030                if ( empty($this->category_base) )
    10311031                        $this->category_structure = trailingslashit( $this->front . 'category' );
    10321032                else
    1033                         $this->category_structure = trailingslashit( '/' . $this->root . $this->category_base );
     1033                        $this->category_structure = trailingslashit( '/' . $this->root . rawurlencode( $this->category_base ) );
    10341034
    10351035                $this->category_structure .= '%category%';
    10361036