From cc4c59a1faffb09752e2ccd92860c87313f59192 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 8 Oct 2015 22:07:24 +0000 Subject: [PATCH] Docs: Add a couple of strategically-placed spaces in `WP_Rewrite`. Fixes #34218. Built from https://develop.svn.wordpress.org/trunk@34964 git-svn-id: http://core.svn.wordpress.org/trunk@34929 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-rewrite.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-rewrite.php b/wp-includes/class-wp-rewrite.php index 9da6376a5e..1773929e55 100644 --- a/wp-includes/class-wp-rewrite.php +++ b/wp-includes/class-wp-rewrite.php @@ -1806,6 +1806,7 @@ class WP_Rewrite { $this->permalink_structure = get_option('permalink_structure'); $this->front = substr($this->permalink_structure, 0, strpos($this->permalink_structure, '%')); $this->root = ''; + if ( $this->using_index_permalinks() ) $this->root = $this->index . '/'; @@ -1843,6 +1844,7 @@ class WP_Rewrite { if ( $permalink_structure != $this->permalink_structure ) { $old_permalink_structure = $this->permalink_structure; update_option('permalink_structure', $permalink_structure); + $this->init(); /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 656b9c8703..23e2c6fa24 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34963'; +$wp_version = '4.4-alpha-34964'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.