Changeset 16833
- Timestamp:
- 12/09/2010 12:36:39 PM (14 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-ms-users-list-table.php
r16765 r16833 218 218 if ( is_array( $blogs ) ) { 219 219 foreach ( (array) $blogs as $key => $val ) { 220 if ( !can_edit_ site( $val->site_id ) )220 if ( !can_edit_network( $val->site_id ) ) 221 221 continue; 222 222 -
trunk/wp-admin/includes/ms.php
r16764 r16833 723 723 } 724 724 /** 725 * Whether or not we can edit this sitefrom this page725 * Whether or not we can edit this network from this page 726 726 * 727 * By default editing of sitesis restricted to the Network Admin for that site_id this allows for this to be overridden727 * By default editing of network is restricted to the Network Admin for that site_id this allows for this to be overridden 728 728 * 729 729 * @since 3.1.0 730 * @param integer $site_id The site id to check.731 */ 732 function can_edit_ site( $site_id ) {730 * @param integer $site_id The network/site id to check. 731 */ 732 function can_edit_network( $site_id ) { 733 733 global $wpdb; 734 734 … … 738 738 $result = false; 739 739 740 return apply_filters( 'can_edit_ site', $result, $site_id );740 return apply_filters( 'can_edit_network', $result, $site_id ); 741 741 } 742 742 ?> -
trunk/wp-admin/network/site-info.php
r16764 r16833 23 23 24 24 $details = get_blog_details( $id ); 25 if ( !can_edit_ site( $details->site_id ) )25 if ( !can_edit_network( $details->site_id ) ) 26 26 wp_die( __( 'You do not have permission to access this page.' ) ); 27 27 -
trunk/wp-admin/network/site-options.php
r16764 r16833 23 23 24 24 $details = get_blog_details( $id ); 25 if ( !can_edit_ site( $details->site_id ) )25 if ( !can_edit_network( $details->site_id ) ) 26 26 wp_die( __( 'You do not have permission to access this page.' ) ); 27 27 -
trunk/wp-admin/network/site-themes.php
r16764 r16833 32 32 33 33 $details = get_blog_details( $id ); 34 if ( !can_edit_ site( $details->site_id ) )34 if ( !can_edit_network( $details->site_id ) ) 35 35 wp_die( __( 'You do not have permission to access this page.' ) ); 36 36 -
trunk/wp-admin/network/site-users.php
r16764 r16833 29 29 30 30 $details = get_blog_details( $id ); 31 if ( !can_edit_ site( $details->site_id ) )31 if ( !can_edit_network( $details->site_id ) ) 32 32 wp_die( __( 'You do not have permission to access this page.' ) ); 33 33
Note: See TracChangeset
for help on using the changeset viewer.