diff -r 346c88efed21 -r 5e2f62d02dcd wp/wp-admin/network.php --- a/wp/wp-admin/network.php Mon Jun 08 16:11:51 2015 +0000 +++ b/wp/wp-admin/network.php Tue Jun 09 03:35:32 2015 +0200 @@ -39,8 +39,11 @@ */ function network_domain_check() { global $wpdb; - if ( $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->site'" ) ) + + $sql = $wpdb->prepare( "SHOW TABLES LIKE %s", $wpdb->esc_like( $wpdb->site ) ); + if ( $wpdb->get_var( $sql ) ) { return $wpdb->get_var( "SELECT domain FROM $wpdb->site ORDER BY id ASC LIMIT 1" ); + } return false; } @@ -117,8 +120,8 @@ '
' . __('Once you add this code and refresh your browser, multisite should be enabled. This screen, now in the Network Admin navigation menu, will keep an archive of the added code. You can toggle between Network Admin and Site Admin by clicking on the Network Admin or an individual site name under the My Sites dropdown in the Toolbar.') . '
' . '' . __('The choice of subdirectory sites is disabled if this setup is more than a month old because of permalink problems with “/blog/” from the main site. This disabling will be addressed in a future version.') . '
' . '' . __('For more information:') . '
' . - '' . __('Documentation on Creating a Network') . '
' . - '' . __('Documentation on the Network Screen') . '
'; + '' . __('Documentation on Creating a Network') . '
' . + '' . __('Documentation on the Network Screen') . '
'; get_current_screen()->add_help_tab( array( 'id' => 'network', @@ -128,15 +131,14 @@ get_current_screen()->set_help_sidebar( '' . __('For more information:') . '
' . - '' . __('Documentation on Creating a Network') . '
' . - '' . __('Documentation on the Network Screen') . '
' . - '' . __('Support Forums') . '
' + '' . __('Documentation on Creating a Network') . '
' . + '' . __('Documentation on the Network Screen') . '
' . + '' . __('Support Forums') . '
' ); include( ABSPATH . 'wp-admin/admin-header.php' ); ?>' . __('ERROR:') . ' ' . __( 'The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when creating a network.' ) . '