summaryrefslogtreecommitdiffstats
path: root/wp-admin/options-reading.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-10-09 11:39:17 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-10-09 11:39:17 +0000
commit75e0ccc3a64e164d036da4f71f458520ddea3b24 (patch)
tree94f00db692e25c95030f7984c27178e1bd7e1bcd /wp-admin/options-reading.php
parentca036ad95fc44c318275ab539a52f1eb6fddf060 (diff)
downloadwordpress-mu-75e0ccc3a64e164d036da4f71f458520ddea3b24.tar.gz
wordpress-mu-75e0ccc3a64e164d036da4f71f458520ddea3b24.tar.xz
wordpress-mu-75e0ccc3a64e164d036da4f71f458520ddea3b24.zip
WP Merge - needs testing.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@797 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/options-reading.php')
-rw-r--r--wp-admin/options-reading.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php
index bb7bd9e..fc73637 100644
--- a/wp-admin/options-reading.php
+++ b/wp-admin/options-reading.php
@@ -5,6 +5,16 @@ $title = __('Reading Options');
$parent_file = 'options-general.php';
include('admin-header.php');
+
+// Sanity checks
+if ( 'page' == get_option('show_on_front') ) {
+ $front_page = get_option('page_on_front');
+ if ( empty($front_page) ) {
+ update_option('show_on_front', 'posts');
+ delete_option('page_for_posts');
+ delete_option('page_on_front');
+ }
+}
?>
<div class="wrap">