Make WordPress Core


Ignore:
Timestamp:
12/09/2010 12:36:39 PM (14 years ago)
Author:
nacin
Message:

s/can_edit_site/can_edit_network/g. see #15720.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r16764 r16833  
    723723}
    724724/**
    725  * Whether or not we can edit this site from this page
     725 * Whether or not we can edit this network from this page
    726726 *
    727  * By default editing of sites is restricted to the Network Admin for that site_id this allows for this to be overridden
     727 * By default editing of network is restricted to the Network Admin for that site_id this allows for this to be overridden
    728728 *
    729729 * @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 */
     732function can_edit_network( $site_id ) {
    733733    global $wpdb;
    734734       
     
    738738        $result = false;
    739739   
    740     return apply_filters( 'can_edit_site', $result, $site_id );
     740    return apply_filters( 'can_edit_network', $result, $site_id );
    741741}
    742742?>
Note: See TracChangeset for help on using the changeset viewer.