~canonical-sysadmins/wordpress/4.6

« back to all changes in this revision

Viewing changes to wp-admin/network/edit.php

  • Committer: Jacek Nykis
  • Date: 2015-01-05 16:17:05 UTC
  • Revision ID: jacek.nykis@canonical.com-20150105161705-w544l1h5mcg7u4w9
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Action handler for Multisite administration panels.
 
4
 *
 
5
 * @package WordPress
 
6
 * @subpackage Multisite
 
7
 * @since 3.0.0
 
8
 */
 
9
 
 
10
/** Load WordPress Administration Bootstrap */
 
11
require_once( dirname( __FILE__ ) . '/admin.php' );
 
12
 
 
13
if ( ! is_multisite() )
 
14
        wp_die( __( 'Multisite support is not enabled.' ) );
 
15
 
 
16
if ( empty( $_GET['action'] ) ) {
 
17
        wp_redirect( network_admin_url() );
 
18
        exit;
 
19
}
 
20
 
 
21
/**
 
22
 * Fires just before the action handler in several Network Admin screens.
 
23
 *
 
24
 * This hook fires on multiple screens in the Multisite Network Admin,
 
25
 * including Users, Network Settings, and Site Settings.
 
26
 *
 
27
 * @since 3.0.0
 
28
 */
 
29
do_action( 'wpmuadminedit' );
 
30
 
 
31
/**
 
32
 * Fires the requested handler action.
 
33
 *
 
34
 * The dynamic portion of the hook name, $_GET['action'], refers to the name
 
35
 * of the requested action.
 
36
 *
 
37
 * @since 3.1.0
 
38
 */
 
39
do_action( 'network_admin_edit_' . $_GET['action'] );
 
40
 
 
41
wp_redirect( network_admin_url() );
 
42
exit();