Make WordPress Core


Ignore:
Timestamp:
12/07/2020 07:59:15 PM (5 years ago)
Author:
helen
Message:

App Passwords: Store the "in use" option in the main network options.

Whether App Passwords are being used is a global featurel, not a per-network feature. This fixes issues on Multi Network installs if App Passwords are used on a different network from where they were created.

Props spacedmonkey.
Fixes #51939.
See [49752].
Merges [49764] to the 5.6 branch.

Location:
branches/5.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.6

  • branches/5.6/src/wp-admin/includes/upgrade.php

    r49754 r49765  
    22892289
    22902290        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 );
    22922293        }
    22932294    }
Note: See TracChangeset for help on using the changeset viewer.