Docs: Add a couple of strategically-placed spaces in `WP_Rewrite`.
Fixes #34218. git-svn-id: https://develop.svn.wordpress.org/trunk@34964 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b02c884370
commit
6fe7598cff
|
@ -1806,6 +1806,7 @@ class WP_Rewrite {
|
||||||
$this->permalink_structure = get_option('permalink_structure');
|
$this->permalink_structure = get_option('permalink_structure');
|
||||||
$this->front = substr($this->permalink_structure, 0, strpos($this->permalink_structure, '%'));
|
$this->front = substr($this->permalink_structure, 0, strpos($this->permalink_structure, '%'));
|
||||||
$this->root = '';
|
$this->root = '';
|
||||||
|
|
||||||
if ( $this->using_index_permalinks() )
|
if ( $this->using_index_permalinks() )
|
||||||
$this->root = $this->index . '/';
|
$this->root = $this->index . '/';
|
||||||
|
|
||||||
|
@ -1843,6 +1844,7 @@ class WP_Rewrite {
|
||||||
if ( $permalink_structure != $this->permalink_structure ) {
|
if ( $permalink_structure != $this->permalink_structure ) {
|
||||||
$old_permalink_structure = $this->permalink_structure;
|
$old_permalink_structure = $this->permalink_structure;
|
||||||
update_option('permalink_structure', $permalink_structure);
|
update_option('permalink_structure', $permalink_structure);
|
||||||
|
|
||||||
$this->init();
|
$this->init();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue