From 637d557acaca935af0e9652b3fdc32fa44f6ca6b Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 26 Mar 2010 04:42:08 +0000 Subject: [PATCH] Initialize _wp_page_template for the first page in wp_install_defaults(). fixes #12653, a Webkit/jQuery bug in Quick Edit (see ticket) git-svn-id: http://svn.automattic.com/wordpress/trunk@13817 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/upgrade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index fc7aba9714..b2a7e4b7cb 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -264,6 +264,7 @@ function wp_install_defaults($user_id) { 'pinged' => '', 'post_content_filtered' => '' )); + $wpdb->insert( $wpdb->postmeta, array( 'post_id' => 2, 'meta_key' => '_wp_page_template', 'meta_value' => 'default' ) ); // Setup default widgets for default theme. update_option( 'widget_search', array ( 2 => array ( 'title' => '' ), '_multiwidget' => 1 ) );