mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Multisite: Remove references to $wpdb->siteid and use get_current_network_id() instead.
Props sathyapulse, spacedmonkey. Fixes #41507. git-svn-id: https://develop.svn.wordpress.org/trunk@41242 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -792,15 +792,11 @@ function choose_primary_blog() {
|
||||
*
|
||||
* @since 3.1.0
|
||||
*
|
||||
* @global wpdb $wpdb WordPress database abstraction object.
|
||||
*
|
||||
* @param int $network_id The network ID to check.
|
||||
* @return bool True if network can be edited, otherwise false.
|
||||
*/
|
||||
function can_edit_network( $network_id ) {
|
||||
global $wpdb;
|
||||
|
||||
if ( $network_id == $wpdb->siteid )
|
||||
if ( $network_id == get_current_network_id() )
|
||||
$result = true;
|
||||
else
|
||||
$result = false;
|
||||
|
||||
Reference in New Issue
Block a user