summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--index-install.php2
-rw-r--r--wp-admin/wpmu-options.php4
-rw-r--r--wp-signup.php3
3 files changed, 6 insertions, 3 deletions
diff --git a/index-install.php b/index-install.php
index 26bd490..fb2a018 100644
--- a/index-install.php
+++ b/index-install.php
@@ -368,7 +368,7 @@ function step3() {
$wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'admin_email', '".$email."')" );
$wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'admin_user_id', '1')" );
$wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'registration', 'none')" );
- $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'xmlrpc_active', 'no')" );
+ $wpdb->query( "INSERT INTO ".$wpdb->sitemeta." (meta_id, site_id, meta_key, meta_value) VALUES (NULL, 1, 'xmlrpc_active', 'yes')" );
$wpdb->query( "INSERT INTO ".$wpdb->site." ( id, domain, path ) VALUES ( NULL, '$domain', '$base' )" );
$wpdb->query( "INSERT INTO " . $wpdb->sitecategories . " ( cat_ID, cat_name, category_nicename, last_updated ) VALUES (1, 'Uncategorized', 'uncategorized', NOW())" );
$wpdb->query( "INSERT INTO " . $wpdb->sitecategories . " ( cat_ID, cat_name, category_nicename, last_updated ) VALUES (2, 'Blogroll', 'blogroll', NOW())" );
diff --git a/wp-admin/wpmu-options.php b/wp-admin/wpmu-options.php
index 1a59e66..746fec5 100644
--- a/wp-admin/wpmu-options.php
+++ b/wp-admin/wpmu-options.php
@@ -74,7 +74,7 @@ if (isset($_GET['updated'])) {
<th scope="row"><?php _e('Enable posting by XMLRPC') ?></th>
<?php
if( !get_site_option('xmlrpc_active') )
- update_site_option( 'xmlrpc_active', 'no' );
+ update_site_option( 'xmlrpc_active', 'yes' );
?>
<td>
<input name="xmlrpc_active" type="radio" id="xmlrpc_active1" value='yes' <?php echo get_site_option('xmlrpc_active') == 'yes' ? 'checked="checked"' : ''; ?> /> <?php _e('Yes'); ?><br />
@@ -212,4 +212,4 @@ if (isset($_GET['updated'])) {
</form>
</div>
-<?php include('./admin-footer.php'); ?> \ No newline at end of file
+<?php include('./admin-footer.php'); ?>
diff --git a/wp-signup.php b/wp-signup.php
index 2b6df24..73f1e13 100644
--- a/wp-signup.php
+++ b/wp-signup.php
@@ -201,6 +201,9 @@ function signup_another_blog($blog_id = '', $blog_title = '', $errors = '') {
function validate_another_blog_signup() {
global $current_user, $blog_id, $blog_title, $errors, $domain, $path;
+ if( !is_user_logged_in() ) {
+ die();
+ }
$result = validate_blog_form();
extract($result);