Ticket #16383: 16383.5.patch
| File 16383.5.patch, 5.8 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/css/forms.css
978 978 } 979 979 } 980 980 981 /*------------------------------------------------------------------------------ 982 21.0 - Network Admin 983 ------------------------------------------------------------------------------*/ 984 985 .form-field #site-address { 986 width: auto; 987 } 988 989 .form-field #domain { 990 width: 22em; 991 } 992 993 .form-field #site-title, 994 .form-field #admin-email, 995 .form-field #path, 996 .form-field #blog_registered, 997 .form-field #blog_last_updated { 998 width: 25em; 999 } 1000 1001 .form-field #path { 1002 margin-bottom: 5px; 1003 } 1004 981 1005 @media only screen and (max-width: 768px) { 982 1006 .form-field input, 983 1007 .form-field textarea { -
src/wp-admin/network/site-info.php
126 126 <?php if ( $is_main_site ) { ?> 127 127 <td><code><?php echo $parsed['scheme'] . '://' . esc_attr( $details->domain ) ?></code></td> 128 128 <?php } else { ?> 129 <td><?php echo $parsed['scheme'] . '://'; ?><input name="blog[domain]" type="text" id="domain" value="<?php echo esc_attr( $details->domain ) ?>" size="33"/></td>129 <td><?php echo $parsed['scheme'] . '://'; ?><input name="blog[domain]" type="text" id="domain" value="<?php echo esc_attr( $details->domain ) ?>" /></td> 130 130 <?php } ?> 131 131 </tr> 132 132 <tr class="form-field form-required"> … … 137 137 } else { 138 138 switch_to_blog( $id ); 139 139 ?> 140 <td><input name="blog[path]" type="text" id="path" value="<?php echo esc_attr( $details->path ) ?>" size="40" style="margin-bottom:5px;"/>141 <br /><input type="checkbox" style="width:20px;"name="update_home_url" value="update" <?php if ( get_option( 'siteurl' ) == untrailingslashit( get_blogaddress_by_id ($id ) ) || get_option( 'home' ) == untrailingslashit( get_blogaddress_by_id( $id ) ) ) echo 'checked="checked"'; ?> /> <?php _e( 'Update <code>siteurl</code> and <code>home</code> as well.' ); ?></td>140 <td><input name="blog[path]" type="text" id="path" value="<?php echo esc_attr( $details->path ) ?>" /> 141 <br /><input type="checkbox" name="update_home_url" value="update" <?php if ( get_option( 'siteurl' ) == untrailingslashit( get_blogaddress_by_id ($id ) ) || get_option( 'home' ) == untrailingslashit( get_blogaddress_by_id( $id ) ) ) echo 'checked="checked"'; ?> /> <?php _e( 'Update <code>siteurl</code> and <code>home</code> as well.' ); ?></td> 142 142 <?php 143 143 restore_current_blog(); 144 144 } ?> … … 145 145 </tr> 146 146 <tr class="form-field"> 147 147 <th scope="row"><?php _ex( 'Registered', 'site' ) ?></th> 148 <td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr( $details->registered ) ?>" size="40"/></td>148 <td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr( $details->registered ) ?>" /></td> 149 149 </tr> 150 150 <tr class="form-field"> 151 151 <th scope="row"><?php _e( 'Last Updated' ); ?></th> 152 <td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ) ?>" size="40"/></td>152 <td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ) ?>" /></td> 153 153 </tr> 154 154 <?php 155 155 $attribute_fields = array( 'public' => __( 'Public' ) ); -
src/wp-admin/network/site-new.php
130 130 <th scope="row"><?php _e( 'Site Address' ) ?></th> 131 131 <td> 132 132 <?php if ( is_subdomain_install() ) { ?> 133 <input name="blog[domain]" type="text" class="regular-text" title="<?php esc_attr_e( 'Domain' ) ?>"/><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', $current_site->domain ); ?></span>133 <input name="blog[domain]" type="text" class="regular-text" id="site-address" title="<?php esc_attr_e( 'Domain' ) ?>"/><span class="no-break">.<?php echo preg_replace( '|^www\.|', '', $current_site->domain ); ?></span> 134 134 <?php } else { 135 echo $current_site->domain . $current_site->path ?><input name="blog[domain]" class="regular-text" type="text" title="<?php esc_attr_e( 'Domain' ) ?>"/>135 echo $current_site->domain . $current_site->path ?><input name="blog[domain]" class="regular-text" id="site-address" type="text" title="<?php esc_attr_e( 'Domain' ) ?>"/> 136 136 <?php } 137 137 echo '<p>' . __( 'Only lowercase letters (a-z) and numbers are allowed.' ) . '</p>'; 138 138 ?> … … 140 140 </tr> 141 141 <tr class="form-field form-required"> 142 142 <th scope="row"><?php _e( 'Site Title' ) ?></th> 143 <td><input name="blog[title]" type="text" class="regular-text" title="<?php esc_attr_e( 'Title' ) ?>"/></td>143 <td><input name="blog[title]" type="text" class="regular-text" id="site-title" title="<?php esc_attr_e( 'Title' ) ?>"/></td> 144 144 </tr> 145 145 <tr class="form-field form-required"> 146 146 <th scope="row"><?php _e( 'Admin Email' ) ?></th> 147 <td><input name="blog[email]" type="email" class="regular-text wp-suggest-user" data-autocomplete-type="search" data-autocomplete-field="user_email" title="<?php esc_attr_e( 'Email' ) ?>"/></td>147 <td><input name="blog[email]" type="email" class="regular-text wp-suggest-user" id="admin-email" data-autocomplete-type="search" data-autocomplete-field="user_email" title="<?php esc_attr_e( 'Email' ) ?>"/></td> 148 148 </tr> 149 149 <tr class="form-field"> 150 150 <td colspan="2"><?php _e( 'A new user will be created if the above email address is not in the database.' ) ?><br /><?php _e( 'The username and password will be mailed to this email address.' ) ?></td>