equal
deleted
inserted
replaced
15 } |
15 } |
16 |
16 |
17 get_current_screen()->add_help_tab( get_site_screen_help_tab_args() ); |
17 get_current_screen()->add_help_tab( get_site_screen_help_tab_args() ); |
18 get_current_screen()->set_help_sidebar( get_site_screen_help_sidebar_content() ); |
18 get_current_screen()->set_help_sidebar( get_site_screen_help_sidebar_content() ); |
19 |
19 |
20 $id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0; |
20 $id = isset( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0; |
21 |
21 |
22 if ( ! $id ) { |
22 if ( ! $id ) { |
23 wp_die( __( 'Invalid site ID.' ) ); |
23 wp_die( __( 'Invalid site ID.' ) ); |
24 } |
24 } |
25 |
25 |
179 <tr class="form-field"> |
179 <tr class="form-field"> |
180 <th scope="row"><label for="blog_last_updated"><?php _e( 'Last Updated' ); ?></label></th> |
180 <th scope="row"><label for="blog_last_updated"><?php _e( 'Last Updated' ); ?></label></th> |
181 <td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ); ?>" /></td> |
181 <td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ); ?>" /></td> |
182 </tr> |
182 </tr> |
183 <?php |
183 <?php |
184 $attribute_fields = array( 'public' => __( 'Public' ) ); |
184 $attribute_fields = array( 'public' => _x( 'Public', 'site' ) ); |
185 if ( ! $is_main_site ) { |
185 if ( ! $is_main_site ) { |
186 $attribute_fields['archived'] = __( 'Archived' ); |
186 $attribute_fields['archived'] = __( 'Archived' ); |
187 $attribute_fields['spam'] = _x( 'Spam', 'site' ); |
187 $attribute_fields['spam'] = _x( 'Spam', 'site' ); |
188 $attribute_fields['deleted'] = __( 'Deleted' ); |
188 $attribute_fields['deleted'] = __( 'Deleted' ); |
189 } |
189 } |
200 <?php endforeach; ?> |
200 <?php endforeach; ?> |
201 <fieldset> |
201 <fieldset> |
202 </td> |
202 </td> |
203 </tr> |
203 </tr> |
204 </table> |
204 </table> |
205 <?php submit_button(); ?> |
205 |
|
206 <?php |
|
207 /** |
|
208 * Fires at the end of the site info form in network admin. |
|
209 * |
|
210 * @since 5.6.0 |
|
211 * |
|
212 * @param int $id The site ID. |
|
213 */ |
|
214 do_action( 'network_site_info_form', $id ); |
|
215 |
|
216 submit_button(); |
|
217 ?> |
206 </form> |
218 </form> |
207 |
219 |
208 </div> |
220 </div> |
209 <?php |
221 <?php |
210 require_once ABSPATH . 'wp-admin/admin-footer.php'; |
222 require_once ABSPATH . 'wp-admin/admin-footer.php'; |