WordPress.org

Make WordPress Core

Ticket #21167: 21167.2.patch

File 21167.2.patch, 502 bytes (added by SergeyBiryukov, 3 years ago)
  • wp-includes/rewrite.php

     
    12511251                        } 
    12521252                } 
    12531253 
     1254                $permalink_structure = preg_quote( $permalink_structure ); 
     1255 
    12541256                //get everything up to the first rewrite tag 
    12551257                $front = substr($permalink_structure, 0, strpos($permalink_structure, '%')); 
    12561258                //build an array of the tags (note that said array ends up being in $tokens[0])