wp/wp-admin/network/site-info.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
child 19 3d72ae0968f4
--- a/wp/wp-admin/network/site-info.php	Tue Dec 15 15:52:01 2020 +0100
+++ b/wp/wp-admin/network/site-info.php	Wed Sep 21 18:19:35 2022 +0200
@@ -17,7 +17,7 @@
 get_current_screen()->add_help_tab( get_site_screen_help_tab_args() );
 get_current_screen()->set_help_sidebar( get_site_screen_help_sidebar_content() );
 
-$id = isset( $_REQUEST['id'] ) ? intval( $_REQUEST['id'] ) : 0;
+$id = isset( $_REQUEST['id'] ) ? (int) $_REQUEST['id'] : 0;
 
 if ( ! $id ) {
 	wp_die( __( 'Invalid site ID.' ) );
@@ -181,7 +181,7 @@
 			<td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ); ?>" /></td>
 		</tr>
 		<?php
-		$attribute_fields = array( 'public' => __( 'Public' ) );
+		$attribute_fields = array( 'public' => _x( 'Public', 'site' ) );
 		if ( ! $is_main_site ) {
 			$attribute_fields['archived'] = __( 'Archived' );
 			$attribute_fields['spam']     = _x( 'Spam', 'site' );
@@ -202,7 +202,19 @@
 			</td>
 		</tr>
 	</table>
-	<?php submit_button(); ?>
+
+	<?php
+	/**
+	 * Fires at the end of the site info form in network admin.
+	 *
+	 * @since 5.6.0
+	 *
+	 * @param int $id The site ID.
+	 */
+	do_action( 'network_site_info_form', $id );
+
+	submit_button();
+	?>
 </form>
 
 </div>