Changeset 41241 for trunk/src/wp-admin/includes/ms.php
- Timestamp:
- 08/12/2017 12:47:38 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ms.php
r41219 r41241 788 788 * Whether or not we can edit this network from this page. 789 789 * 790 * By default editing of network is restricted to the Network Admin for that `$ site_id`791 * thisallows for this to be overridden.790 * By default editing of network is restricted to the Network Admin for that `$network_id`. 791 * This function allows for this to be overridden. 792 792 * 793 793 * @since 3.1.0 … … 795 795 * @global wpdb $wpdb WordPress database abstraction object. 796 796 * 797 * @param int $ site_id The network/siteID to check.797 * @param int $network_id The network ID to check. 798 798 * @return bool True if network can be edited, otherwise false. 799 799 */ 800 function can_edit_network( $ site_id ) {800 function can_edit_network( $network_id ) { 801 801 global $wpdb; 802 802 803 if ( $ site_id == $wpdb->siteid )803 if ( $network_id == $wpdb->siteid ) 804 804 $result = true; 805 805 else … … 811 811 * @since 3.1.0 812 812 * 813 * @param bool $result Whether the network can be edited from this page.814 * @param int $ site_id The network/siteID to check.813 * @param bool $result Whether the network can be edited from this page. 814 * @param int $network_id The network ID to check. 815 815 */ 816 return apply_filters( 'can_edit_network', $result, $ site_id );816 return apply_filters( 'can_edit_network', $result, $network_id ); 817 817 } 818 818
Note: See TracChangeset
for help on using the changeset viewer.