<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[15886] trunk/wp-admin/network: Move add site form to site-new.php.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/15886">15886</a></dd>
<dt>Author</dt> <dd>ryan</dd>
<dt>Date</dt> <dd>2010-10-21 13:49:49 +0000 (Thu, 21 Oct 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Move add site form to site-new.php. see <a href="http://trac.wordpress.org/ticket/15174">#15174</a></pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminnetworkeditphp">trunk/wp-admin/network/edit.php</a></li>
<li><a href="#trunkwpadminnetworkmenuphp">trunk/wp-admin/network/menu.php</a></li>
<li><a href="#trunkwpadminnetworksitesphp">trunk/wp-admin/network/sites.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkwpadminnetworksitenewphp">trunk/wp-admin/network/site-new.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminnetworkeditphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/network/edit.php (15885 => 15886)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/network/edit.php        2010-10-21 13:15:27 UTC (rev 15885)
+++ trunk/wp-admin/network/edit.php        2010-10-21 13:49:49 UTC (rev 15886)
</span><span class="lines">@@ -158,71 +158,7 @@
</span><span class="cx">                 wp_redirect( add_query_arg( 'updated', 'true', network_admin_url( 'settings.php' ) ) );
</span><span class="cx">                 exit();
</span><span class="cx">         break;
</span><del>-        case 'addblog':
-                check_admin_referer( 'add-blog', '_wpnonce_add-blog' );
</del><span class="cx"> 
</span><del>-                if ( ! current_user_can( 'manage_sites' ) )
-                        wp_die( __( 'You do not have permission to access this page.' ) );
-
-                if ( is_array( $_POST['blog'] ) == false )
-                        wp_die(  __( 'Can&amp;#8217;t create an empty site.' ) );
-                $blog = $_POST['blog'];
-                $domain = '';
-                if ( ! preg_match( '/(--)/', $blog['domain'] ) &amp;&amp; preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) )
-                        $domain = strtolower( $blog['domain'] );
-
-                // If not a subdomain install, make sure the domain isn't a reserved word
-                if ( ! is_subdomain_install() ) {
-                        $subdirectory_reserved_names = apply_filters( 'subdirectory_reserved_names', array( 'page', 'comments', 'blog', 'files', 'feed' ) );
-                        if ( in_array( $domain, $subdirectory_reserved_names ) )
-                                wp_die( sprintf( __('The following words are reserved for use by WordPress functions and cannot be used as blog names: &lt;code&gt;%s&lt;/code&gt;' ), implode( '&lt;/code&gt;, &lt;code&gt;', $subdirectory_reserved_names ) ) );
-                }
-
-                $email = sanitize_email( $blog['email'] );
-                $title = $blog['title'];
-
-                if ( empty( $domain ) )
-                        wp_die( __( 'Missing or invalid site address.' ) );
-                if ( empty( $email ) )
-                        wp_die( __( 'Missing email address.' ) );
-                if ( !is_email( $email ) )
-                        wp_die( __( 'Invalid email address.' ) );
-
-                if ( is_subdomain_install() ) {
-                        $newdomain = $domain . '.' . preg_replace( '|^www\.|', '', $current_site-&gt;domain );
-                        $path = $base;
-                } else {
-                        $newdomain = $current_site-&gt;domain;
-                        $path = $base . $domain . '/';
-                }
-
-                $password = 'N/A';
-                $user_id = email_exists($email);
-                if ( !$user_id ) { // Create a new user with a random password
-                        $password = wp_generate_password();
-                        $user_id = wpmu_create_user( $domain, $password, $email );
-                        if ( false == $user_id )
-                                wp_die( __( 'There was an error creating the user.' ) );
-                        else
-                                wp_new_user_notification( $user_id, $password );
-                }
-
-                $wpdb-&gt;hide_errors();
-                $id = wpmu_create_blog( $newdomain, $path, $title, $user_id , array( 'public' =&gt; 1 ), $current_site-&gt;id );
-                $wpdb-&gt;show_errors();
-                if ( !is_wp_error( $id ) ) {
-                        if ( !is_super_admin( $user_id ) &amp;&amp; !get_user_option( 'primary_blog', $user_id ) )
-                                update_user_option( $user_id, 'primary_blog', $id, true );
-                        $content_mail = sprintf( __( &quot;New site created by %1s\n\nAddress: http://%2s\nName: %3s&quot;), $current_user-&gt;user_login , $newdomain . $path, stripslashes( $title ) );
-                        wp_mail( get_site_option('admin_email'),  sprintf( __( '[%s] New Site Created' ), $current_site-&gt;site_name ), $content_mail, 'From: &quot;Site Admin&quot; &lt;' . get_site_option( 'admin_email' ) . '&gt;' );
-                        wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' =&gt; 1 ) );
-                        wp_redirect( add_query_arg( array( 'updated' =&gt; 'true', 'action' =&gt; 'add-blog' ), wp_get_referer() ) );
-                        exit();
-                } else {
-                        wp_die( $id-&gt;get_error_message() );
-                }
-        break;
-
</del><span class="cx">         case 'updateblog':
</span><span class="cx">                 check_admin_referer( 'editblog' );
</span><span class="cx">                 if ( ! current_user_can( 'manage_sites' ) )
</span></span></pre></div>
<a id="trunkwpadminnetworkmenuphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/network/menu.php (15885 => 15886)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/network/menu.php        2010-10-21 13:15:27 UTC (rev 15885)
+++ trunk/wp-admin/network/menu.php        2010-10-21 13:49:49 UTC (rev 15886)
</span><span class="lines">@@ -14,6 +14,10 @@
</span><span class="cx"> 
</span><span class="cx"> /* translators: Sites menu item */
</span><span class="cx"> $menu[5] = array(__('Sites'), 'manage_sites', 'sites.php', '', 'menu-top menu-icon-site', 'menu-site', 'div');
</span><ins>+
+$submenu['sites.php'][5]  = array( __('Sites'), 'manage_sites', 'sites.php' );
+$submenu['sites.php'][10]  = array( __('Add New'), 'manage_sites', 'site-new.php' );
+
</ins><span class="cx"> $menu[10] = array(__('Users'), 'manage_network_users', 'users.php', '', 'menu-top menu-icon-users', 'menu-users', 'div');
</span><span class="cx"> $menu[15] = array(__('Themes'), 'manage_network_themes', 'themes.php', '', 'menu-top menu-icon-appearance', 'menu-appearance', 'div');
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkwpadminnetworksitenewphp"></a>
<div class="addfile"><h4>Added: trunk/wp-admin/network/site-new.php (0 => 15886)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/network/site-new.php                                (rev 0)
+++ trunk/wp-admin/network/site-new.php        2010-10-21 13:49:49 UTC (rev 15886)
</span><span class="lines">@@ -0,0 +1,137 @@
</span><ins>+&lt;?php
+
+/**
+ * Add Site Administration Screen
+ *
+ * @package WordPress
+ * @subpackage Administration
+ */
+
+/** Load WordPress Administration Bootstrap */
+require_once('./admin.php');
+
+if ( ! is_multisite() )
+        wp_die( __( 'Multisite support is not enabled.' ) );
+
+if ( ! current_user_can('manage_sites') )
+        wp_die(__('You do not have sufficient permissions to add sites to this network.'));
+
+if ( isset($_REQUEST['action']) &amp;&amp; 'add-site' == $_REQUEST['action'] ) {
+        check_admin_referer( 'add-blog', '_wpnonce_add-blog' );
+
+        if ( ! current_user_can( 'manage_sites' ) )
+                wp_die( __( 'You do not have permission to access this page.' ) );
+
+        if ( is_array( $_POST['blog'] ) == false )
+                wp_die(  __( 'Can&amp;#8217;t create an empty site.' ) );
+        $blog = $_POST['blog'];
+        $domain = '';
+        if ( ! preg_match( '/(--)/', $blog['domain'] ) &amp;&amp; preg_match( '|^([a-zA-Z0-9-])+$|', $blog['domain'] ) )
+                $domain = strtolower( $blog['domain'] );
+
+        // If not a subdomain install, make sure the domain isn't a reserved word
+        if ( ! is_subdomain_install() ) {
+                $subdirectory_reserved_names = apply_filters( 'subdirectory_reserved_names', array( 'page', 'comments', 'blog', 'files', 'feed' ) );
+                if ( in_array( $domain, $subdirectory_reserved_names ) )
+                        wp_die( sprintf( __('The following words are reserved for use by WordPress functions and cannot be used as blog names: &lt;code&gt;%s&lt;/code&gt;' ), implode( '&lt;/code&gt;, &lt;code&gt;', $subdirectory_reserved_names ) ) );
+        }
+
+        $email = sanitize_email( $blog['email'] );
+        $title = $blog['title'];
+
+        if ( empty( $domain ) )
+                wp_die( __( 'Missing or invalid site address.' ) );
+        if ( empty( $email ) )
+                wp_die( __( 'Missing email address.' ) );
+        if ( !is_email( $email ) )
+                wp_die( __( 'Invalid email address.' ) );
+
+        if ( is_subdomain_install() ) {
+                $newdomain = $domain . '.' . preg_replace( '|^www\.|', '', $current_site-&gt;domain );
+                $path = $base;
+        } else {
+                $newdomain = $current_site-&gt;domain;
+                $path = $base . $domain . '/';
+        }
+
+        $password = 'N/A';
+        $user_id = email_exists($email);
+        if ( !$user_id ) { // Create a new user with a random password
+                $password = wp_generate_password();
+                $user_id = wpmu_create_user( $domain, $password, $email );
+                if ( false == $user_id )
+                        wp_die( __( 'There was an error creating the user.' ) );
+                else
+                        wp_new_user_notification( $user_id, $password );
+        }
+
+        $wpdb-&gt;hide_errors();
+        $id = wpmu_create_blog( $newdomain, $path, $title, $user_id , array( 'public' =&gt; 1 ), $current_site-&gt;id );
+        $wpdb-&gt;show_errors();
+        if ( !is_wp_error( $id ) ) {
+                if ( !is_super_admin( $user_id ) &amp;&amp; !get_user_option( 'primary_blog', $user_id ) )
+                        update_user_option( $user_id, 'primary_blog', $id, true );
+                $content_mail = sprintf( __( &quot;New site created by %1s\n\nAddress: http://%2s\nName: %3s&quot;), $current_user-&gt;user_login , $newdomain . $path, stripslashes( $title ) );
+                wp_mail( get_site_option('admin_email'),  sprintf( __( '[%s] New Site Created' ), $current_site-&gt;site_name ), $content_mail, 'From: &quot;Site Admin&quot; &lt;' . get_site_option( 'admin_email' ) . '&gt;' );
+                wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' =&gt; 1 ) );
+                wp_redirect( add_query_arg( array('update' =&gt; 'added'), 'site-new.php' ) );
+                exit;
+        } else {
+                wp_die( $id-&gt;get_error_message() );
+        }
+}
+
+if ( isset($_GET['update']) ) {
+        $messages = array();
+        if ( 'added' == $_GET['update'] )
+                $messages[] = __('Site added.');
+}
+
+$title = __('Add New Site');
+$parent_file = 'sites.php';
+
+require('../admin-header.php');
+
+?&gt;
+
+&lt;div class=&quot;wrap&quot;&gt;
+&lt;?php screen_icon(); ?&gt;
+&lt;h2 id=&quot;add-new-site&quot;&gt;&lt;?php _e('Add New Site') ?&gt;&lt;/h2&gt;
+&lt;?php
+if ( ! empty( $messages ) ) {
+        foreach ( $messages as $msg )
+                echo '&lt;div id=&quot;message&quot; class=&quot;updated&quot;&gt;&lt;p&gt;' . $msg . '&lt;/p&gt;&lt;/div&gt;';
+} ?&gt;
+&lt;form method=&quot;post&quot; action=&quot;&lt;?php echo network_admin_url('site-new.php?action=add-site'); ?&gt;&quot;&gt;
+&lt;?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?&gt;
+        &lt;table class=&quot;form-table&quot;&gt;
+                &lt;tr class=&quot;form-field form-required&quot;&gt;
+                        &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Site Address' ) ?&gt;&lt;/th&gt;
+                        &lt;td&gt;
+                        &lt;?php if ( is_subdomain_install() ) { ?&gt;
+                                &lt;input name=&quot;blog[domain]&quot; type=&quot;text&quot; class=&quot;regular-text&quot; title=&quot;&lt;?php _e( 'Domain' ) ?&gt;&quot;/&gt;.&lt;?php echo preg_replace( '|^www\.|', '', $current_site-&gt;domain );?&gt;
+                        &lt;?php } else {
+                                echo $current_site-&gt;domain . $current_site-&gt;path ?&gt;&lt;input name=&quot;blog[domain]&quot; class=&quot;regular-text&quot; type=&quot;text&quot; title=&quot;&lt;?php _e( 'Domain' ) ?&gt;&quot;/&gt;
+                        &lt;?php }
+                        echo '&lt;p&gt;' . __( 'Only the characters a-z and 0-9 recommended.' ) . '&lt;/p&gt;';
+                        ?&gt;
+                        &lt;/td&gt;
+                &lt;/tr&gt;
+                &lt;tr class=&quot;form-field form-required&quot;&gt;
+                        &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Site Title' ) ?&gt;&lt;/th&gt;
+                        &lt;td&gt;&lt;input name=&quot;blog[title]&quot; type=&quot;text&quot; class=&quot;regular-text&quot; title=&quot;&lt;?php _e( 'Title' ) ?&gt;&quot;/&gt;&lt;/td&gt;
+                &lt;/tr&gt;
+                &lt;tr class=&quot;form-field form-required&quot;&gt;
+                        &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Admin Email' ) ?&gt;&lt;/th&gt;
+                        &lt;td&gt;&lt;input name=&quot;blog[email]&quot; type=&quot;text&quot; class=&quot;regular-text&quot; title=&quot;&lt;?php _e( 'Email' ) ?&gt;&quot;/&gt;&lt;/td&gt;
+                &lt;/tr&gt;
+                &lt;tr class=&quot;form-field&quot;&gt;
+                        &lt;td colspan=&quot;2&quot;&gt;&lt;?php _e( 'A new user will be created if the above email address is not in the database.' ) ?&gt;&lt;br /&gt;&lt;?php _e( 'The username and password will be mailed to this email address.' ) ?&gt;&lt;/td&gt;
+                &lt;/tr&gt;
+        &lt;/table&gt;
+        &lt;?php submit_button( __('Add Site'), 'primary', 'add-site' ); ?&gt;
+        &lt;/form&gt;
+&lt;/div&gt;
+&lt;?php
+require('../admin-footer.php');
+?&gt;
</ins><span class="cx">Property changes on: trunk/wp-admin/network/site-new.php
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:eol-style
</span><span class="cx">   + native
</span></span></pre></div>
<a id="trunkwpadminnetworksitesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/network/sites.php (15885 => 15886)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/network/sites.php        2010-10-21 13:15:27 UTC (rev 15885)
+++ trunk/wp-admin/network/sites.php        2010-10-21 13:49:49 UTC (rev 15886)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx">         );
</span><span class="cx"> } else {
</span><span class="cx">         add_contextual_help($current_screen,
</span><del>-                '&lt;p&gt;' . __('Add New takes you farther down on this same page. You can search for a site by Name, ID number, or IP address. Screen Options allows you to choose how many sites to display on one page.') . '&lt;/p&gt;' .
</del><ins>+                '&lt;p&gt;' . __('Add New takes you to the Add New Site screen. You can search for a site by Name, ID number, or IP address. Screen Options allows you to choose how many sites to display on one page.') . '&lt;/p&gt;' .
</ins><span class="cx">                 '&lt;p&gt;' . __('This is the main table of all sites on this network. Switch between list and excerpt views by using the icons above the right side of the table.') . '&lt;/p&gt;' .
</span><span class="cx">                 '&lt;p&gt;' . __('Hovering over each site reveals seven options (three for the primary site):') . '&lt;/p&gt;' .
</span><span class="cx">                 '&lt;ul&gt;&lt;li&gt;' . __('An Edit link to a separate Edit Site screen.') . '&lt;/li&gt;' .
</span><span class="lines">@@ -40,7 +40,6 @@
</span><span class="cx">                 '&lt;li&gt;' . __('Visit to go to the frontend site live.') . '&lt;/li&gt;&lt;/ul&gt;' .
</span><span class="cx">                 '&lt;p&gt;' . __('The site ID is used internally, and is not shown on the front end of the site or to users/viewers.') . '&lt;/p&gt;' .
</span><span class="cx">                 '&lt;p&gt;' . __('Clicking on bold settings can re-sort this table. The upper right icons switch between list and excerpt views.') . '&lt;/p&gt;' .
</span><del>-                '&lt;p&gt;' . __(&quot;Clicking on Add Site, after filling out the address, title, and admin's email address, adds the site instantly to the network and this table. You may want to then click on the action link to edit options for that site.&quot;) . '&lt;/p&gt;' .
</del><span class="cx">                 '&lt;p&gt;' . __('If the admin email for the new site does not exist in the database, a new user will also be created.') . '&lt;/p&gt;' .
</span><span class="cx">                 '&lt;p&gt;&lt;strong&gt;' . __('For more information:') . '&lt;/strong&gt;&lt;/p&gt;' .
</span><span class="cx">                 '&lt;p&gt;' . __('&lt;a href=&quot;http://codex.wordpress.org/Super_Admin_Sites_SubPanel&quot; target=&quot;_blank&quot;&gt;Documentation on Sites&lt;/a&gt;') . '&lt;/p&gt;' .
</span><span class="lines">@@ -65,9 +64,6 @@
</span><span class="cx">                 case 'delete':
</span><span class="cx">                         $msg = __( 'Site deleted.' );
</span><span class="cx">                 break;
</span><del>-                case 'add-blog':
-                        $msg = __( 'Site added.' );
-                break;
</del><span class="cx">                 case 'archive':
</span><span class="cx">                         $msg = __( 'Site archived.' );
</span><span class="cx">                 break;
</span><span class="lines">@@ -355,7 +351,7 @@
</span><span class="cx">                 &lt;?php screen_icon('index'); ?&gt;
</span><span class="cx">                 &lt;h2&gt;&lt;?php _e('Sites') ?&gt;
</span><span class="cx">                 &lt;?php echo $msg; ?&gt;
</span><del>-                &lt;a href=&quot;#form-add-site&quot; class=&quot;button add-new-h2&quot;&gt;&lt;?php echo esc_html_x( 'Add New', 'sites' ); ?&gt;&lt;/a&gt;
</del><ins>+                &lt;a href=&quot;&lt;?php echo network_admin_url('site-new.php'); ?&gt;&quot; class=&quot;button add-new-h2&quot;&gt;&lt;?php echo esc_html_x( 'Add New', 'sites' ); ?&gt;&lt;/a&gt;
</ins><span class="cx">                 &lt;?php if ( isset( $_REQUEST['s'] ) &amp;&amp; $_REQUEST['s'] ) {
</span><span class="cx">                         printf( '&lt;span class=&quot;subtitle&quot;&gt;' . __( 'Search results for &amp;#8220;%s&amp;#8221;' ) . '&lt;/span&gt;', esc_html( $s ) );
</span><span class="cx">                 } ?&gt;
</span><span class="lines">@@ -378,40 +374,6 @@
</span><span class="cx">                         &lt;?php $wp_list_table-&gt;display(); ?&gt;
</span><span class="cx">                 &lt;/form&gt;
</span><span class="cx">                 &lt;/div&gt;
</span><del>-
-                &lt;div id=&quot;form-add-site&quot; class=&quot;wrap&quot;&gt;
-                        &lt;h3&gt;&lt;?php _e( 'Add Site' ) ?&gt;&lt;/h3&gt;
-                        &lt;form method=&quot;post&quot; action=&quot;edit.php?action=addblog&quot;&gt;
-                                &lt;?php wp_nonce_field( 'add-blog', '_wpnonce_add-blog' ) ?&gt;
-                                &lt;table class=&quot;form-table&quot;&gt;
-                                        &lt;tr class=&quot;form-field form-required&quot;&gt;
-                                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Site Address' ) ?&gt;&lt;/th&gt;
-                                                &lt;td&gt;
-                                                &lt;?php if ( is_subdomain_install() ) { ?&gt;
-                                                        &lt;input name=&quot;blog[domain]&quot; type=&quot;text&quot; class=&quot;regular-text&quot; title=&quot;&lt;?php _e( 'Domain' ) ?&gt;&quot;/&gt;.&lt;?php echo preg_replace( '|^www\.|', '', $current_site-&gt;domain );?&gt;
-                                                &lt;?php } else {
-                                                        echo $current_site-&gt;domain . $current_site-&gt;path ?&gt;&lt;input name=&quot;blog[domain]&quot; class=&quot;regular-text&quot; type=&quot;text&quot; title=&quot;&lt;?php _e( 'Domain' ) ?&gt;&quot;/&gt;
-                                                &lt;?php }
-                                                echo '&lt;p&gt;' . __( 'Only the characters a-z and 0-9 recommended.' ) . '&lt;/p&gt;';
-                                                ?&gt;
-                                                &lt;/td&gt;
-                                        &lt;/tr&gt;
-                                        &lt;tr class=&quot;form-field form-required&quot;&gt;
-                                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Site Title' ) ?&gt;&lt;/th&gt;
-                                                &lt;td&gt;&lt;input name=&quot;blog[title]&quot; type=&quot;text&quot; class=&quot;regular-text&quot; title=&quot;&lt;?php _e( 'Title' ) ?&gt;&quot;/&gt;&lt;/td&gt;
-                                        &lt;/tr&gt;
-                                        &lt;tr class=&quot;form-field form-required&quot;&gt;
-                                                &lt;th scope=&quot;row&quot;&gt;&lt;?php _e( 'Admin Email' ) ?&gt;&lt;/th&gt;
-                                                &lt;td&gt;&lt;input name=&quot;blog[email]&quot; type=&quot;text&quot; class=&quot;regular-text&quot; title=&quot;&lt;?php _e( 'Email' ) ?&gt;&quot;/&gt;&lt;/td&gt;
-                                        &lt;/tr&gt;
-                                        &lt;tr class=&quot;form-field&quot;&gt;
-                                                &lt;td colspan=&quot;2&quot;&gt;&lt;?php _e( 'A new user will be created if the above email address is not in the database.' ) ?&gt;&lt;br /&gt;&lt;?php _e( 'The username and password will be mailed to this email address.' ) ?&gt;&lt;/td&gt;
-                                        &lt;/tr&gt;
-                                &lt;/table&gt;
-                                &lt;p class=&quot;submit&quot;&gt;
-                                        &lt;input class=&quot;button&quot; type=&quot;submit&quot; name=&quot;go&quot; value=&quot;&lt;?php esc_attr_e( 'Add Site' ) ?&gt;&quot; /&gt;&lt;/p&gt;
-                        &lt;/form&gt;
-                &lt;/div&gt;
</del><span class="cx">                 &lt;?php
</span><span class="cx">         break;
</span><span class="cx"> } // end switch( $action )
</span></span></pre>
</div>
</div>

</body>
</html>