[wp-trac] [WordPress Trac] #60029: Admin unable to create new Application Password for user with no role on main site (multisite)

WordPress Trac noreply at wordpress.org
Wed Apr 16 16:03:07 UTC 2025


#60029: Admin unable to create new Application Password for user with no role on
main site (multisite)
-----------------------------------+------------------------
 Reporter:  roytanck               |       Owner:  (none)
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  6.9
Component:  Application Passwords  |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  changes-requested      |     Focuses:  multisite
-----------------------------------+------------------------
Changes (by SirLouen):

 * keywords:  has-patch has-unit-tests reporter-feedback => changes-
               requested


Comment:

 == Combined Bug Reproduction and Patch Test Report
 === Description
 🟠 This report validates that patch works as expected with some warnings

 Patch tested: https://github.com/WordPress/wordpress-
 develop/pull/8638.diff

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.4.6
 - Server: nginx/1.27.4
 - Database: mysqli (Server: 8.4.4 / Client: mysqlnd 8.4.6)
 - Browser: Chrome 135.0.0.0
 - OS: Windows 10/11
 - Theme: Twenty Twenty-Five 1.2
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0

 === Bug Reproduction
 1. Enable Multisite
 2. As an WP^Admin, create a New user in the Network level with Subscriber
 role
 3. From the Network-level, edit that Subscriber user
 4. Create a new application Password for such user
 5. 🐞 Error: Invalid user ID

 === Expected Result

 - The application password is created sucessfully

 === Actual Results
 1.  🟠 Issue resolved with patch, but some improvement required.

 === Additional Notes
 [https://github.com/WordPress/wordpress-develop/pull/8638 In the PR], I
 have added two suggestions:
 1. Little mod to the patch just for readability purposes
 2. Improvements to the Unit Test proposed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60029#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list