Changeset 31517 for trunk/src/wp-admin/network/site-info.php
- Timestamp:
- 02/23/2015 02:28:41 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/network/site-info.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/site-info.php
r31156 r31517 125 125 <table class="form-table"> 126 126 <tr class="form-field form-required"> 127 <th scope="row"><?php _e( 'Domain' ) ?></th>128 127 <?php if ( $is_main_site ) { ?> 128 <th scope="row"><?php _e( 'Domain' ) ?></th> 129 129 <td><code><?php echo $parsed['scheme'] . '://' . esc_attr( $details->domain ) ?></code></td> 130 130 <?php } else { ?> 131 <th scope="row"><label for="domain"><?php _e( 'Domain' ) ?></label></th> 131 132 <td><?php echo $parsed['scheme'] . '://'; ?><input name="blog[domain]" type="text" id="domain" value="<?php echo esc_attr( $details->domain ) ?>" /></td> 132 133 <?php } ?> 133 134 </tr> 134 135 <tr class="form-field form-required"> 136 <?php if ( $is_main_site ) { ?> 135 137 <th scope="row"><?php _e( 'Path' ) ?></th> 136 <?php if ( $is_main_site ) { ?>137 138 <td><code><?php echo esc_attr( $details->path ) ?></code></td> 138 139 <?php … … 140 141 switch_to_blog( $id ); 141 142 ?> 143 <th scope="row"><label for="path"><?php _e( 'Path' ) ?></label></th> 142 144 <td> 143 145 <input name="blog[path]" type="text" id="path" value="<?php echo esc_attr( $details->path ) ?>" /><br /> 144 < label><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.' ); ?></label>146 <input type="checkbox" name="update_home_url" id="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"'; ?> /> <label for="update_home_url"><?php _e( 'Update <code>siteurl</code> and <code>home</code> as well.' ); ?></label> 145 147 </td> 146 148 <?php … … 149 151 </tr> 150 152 <tr class="form-field"> 151 <th scope="row">< ?php _ex( 'Registered', 'site' ) ?></th>153 <th scope="row"><label for="blog_registered"><?php _ex( 'Registered', 'site' ) ?></label></th> 152 154 <td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr( $details->registered ) ?>" /></td> 153 155 </tr> 154 156 <tr class="form-field"> 155 <th scope="row">< ?php _e( 'Last Updated' ); ?></th>157 <th scope="row"><label for="blog_last_updated"><?php _e( 'Last Updated' ); ?></label></th> 156 158 <td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ) ?>" /></td> 157 159 </tr> … … 168 170 <th scope="row"><?php _e( 'Attributes' ); ?></th> 169 171 <td> 172 <fieldset> 173 <legend class="screen-reader-text"><?php _e( 'Set site attributes' ) ?></legend> 170 174 <?php foreach ( $attribute_fields as $field_key => $field_label ) : ?> 171 175 <label><input type="checkbox" name="blog[<?php echo $field_key; ?>]" value="1" <?php checked( (bool) $details->$field_key, true ); disabled( ! in_array( $details->$field_key, array( 0, 1 ) ) ); ?> /> 172 176 <?php echo $field_label; ?></label><br/> 173 177 <?php endforeach; ?> 178 <fieldset> 174 179 </td> 175 180 </tr>
Note: See TracChangeset
for help on using the changeset viewer.