From 030d69717ce7c41e7693456c272b373fef106f3f Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 28 Oct 2013 15:21:59 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/network/settings.php. Props ninio for the initial patches. Fixes #25727. git-svn-id: https://develop.svn.wordpress.org/trunk@25967 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/network/settings.php | 33 +++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/network/settings.php b/src/wp-admin/network/settings.php index de39b26be2..fd0d41fbca 100644 --- a/src/wp-admin/network/settings.php +++ b/src/wp-admin/network/settings.php @@ -39,7 +39,8 @@ get_current_screen()->set_help_sidebar( ); if ( $_POST ) { - do_action( 'wpmuadminedit' , '' ); + /** This action is documented in wp-admin/network/edit.php */ + do_action( 'wpmuadminedit' ); check_admin_referer( 'siteoptions' ); @@ -64,7 +65,11 @@ if ( $_POST ) { update_site_option( $option_name, $value ); } - // Update more options here + /** + * Fires after the network options are updated. + * + * @since MU + */ do_action( 'update_wpmu_options' ); wp_redirect( add_query_arg( 'updated', 'true', network_admin_url( 'settings.php' ) ) ); @@ -285,6 +290,21 @@ if ( isset( $_GET['updated'] ) ) { __( 'Plugins' ) ) ); foreach ( (array) $menu_items as $key => $val ) { echo "
"; @@ -294,8 +314,13 @@ if ( isset( $_GET['updated'] ) ) { - - +