From 844e1b6e7e72a9a643aa39894a57fb99778249d6 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Sun, 10 Jan 2016 19:06:03 +0000 Subject: [PATCH] After [36254], commit all the necessary files and not just the unit test. git-svn-id: https://develop.svn.wordpress.org/trunk@36255 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/schema.php | 1 + src/wp-includes/class-wp-rewrite.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/includes/schema.php b/src/wp-admin/includes/schema.php index 95da444776..38df908d84 100644 --- a/src/wp-admin/includes/schema.php +++ b/src/wp-admin/includes/schema.php @@ -427,6 +427,7 @@ function populate_options() { 'comment_moderation' => 0, 'moderation_notify' => 1, 'permalink_structure' => '', + 'rewrite_rules' => '', 'hack_file' => 0, 'blog_charset' => 'UTF-8', 'moderation_keys' => '', diff --git a/src/wp-includes/class-wp-rewrite.php b/src/wp-includes/class-wp-rewrite.php index 1107aa9d37..7c639990d1 100644 --- a/src/wp-includes/class-wp-rewrite.php +++ b/src/wp-includes/class-wp-rewrite.php @@ -1806,7 +1806,7 @@ class WP_Rewrite { unset( $do_hard_later ); } - delete_option('rewrite_rules'); + update_option( 'rewrite_rules', '' ); $this->wp_rewrite_rules(); /**