Changeset 49765
- Timestamp:
- 12/07/2020 07:59:15 PM (4 years ago)
- Location:
- branches/5.6
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.6
-
branches/5.6/src/wp-admin/includes/upgrade.php
r49754 r49765 2289 2289 2290 2290 if ( ! empty( $results ) ) { 2291 update_site_option( WP_Application_Passwords::OPTION_KEY_IN_USE, 1 ); 2291 $network_id = get_main_network_id(); 2292 update_network_option( $network_id, WP_Application_Passwords::OPTION_KEY_IN_USE, 1 ); 2292 2293 } 2293 2294 } -
branches/5.6/src/wp-includes/class-wp-application-passwords.php
r49754 r49765 51 51 */ 52 52 public static function is_in_use() { 53 return (bool) get_site_option( self::OPTION_KEY_IN_USE ); 53 $network_id = get_main_network_id(); 54 return (bool) get_network_option( $network_id, self::OPTION_KEY_IN_USE ); 54 55 } 55 56 … … 90 91 } 91 92 92 if ( ! get_site_option( self::OPTION_KEY_IN_USE ) ) { 93 update_site_option( self::OPTION_KEY_IN_USE, true ); 93 $network_id = get_main_network_id(); 94 if ( ! get_network_option( $network_id, self::OPTION_KEY_IN_USE ) ) { 95 update_network_option( $network_id, self::OPTION_KEY_IN_USE, true ); 94 96 } 95 97
Note: See TracChangeset
for help on using the changeset viewer.