[wp-trac] [WordPress Trac] #56819: inline-edit-post.js looks up page author name incorrectly when author no longer has edit capabilities
WordPress Trac
noreply at wordpress.org
Mon Dec 5 23:10:14 UTC 2022
#56819: inline-edit-post.js looks up page author name incorrectly when author no
longer has edit capabilities
-----------------------------+---------------------------------------------
Reporter: OllieJones | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.2
Component: Quick/Bulk Edit | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui, javascript, administration
needs-testing |
-----------------------------+---------------------------------------------
Comment (by costdev):
== Test Report
Patch tested: [https://github.com/WordPress/wordpress-develop/pull/3469 PR
3469]
=== Steps to Reproduce or Test
1. Create a new user with the `Editor` role.
2. Navigate to `Pages > Add New` and create a page.
3. Navigate to `Pages > All pages`.
4. Click `Quick Edit` for the new page.
5. Select the new `Editor` user as the ''Author'' of the page.
6. Navigate to `Users > All Users`.
7. Click `Edit` for the `Editor` user and change their role to
`Subscriber`.
8. Navigate to `Pages > All pages`.
9. 🐞 Click `Quick Edit` for the new page.
=== Expected Results
When reproducing a bug:
- ❌ The ''Author'' `<select>` element should be blank.
When testing a patch to validate it works as expected:
- ✅ The ''Author'' `<select>` element should show the author's name.
=== Environment
* Server: Apache (Linux)
* WordPress: 6.2-alpha-54642-src
* Browser: Chrome 108.0.0.0
* OS: Windows 10
* Theme: Twenty Twenty-Three
* Plugins: None Activated.
=== Actual Results
When reproducing a bug/defect:
- ❌ Issue reproduced.
When testing the patch:
- ✅ Issue resolved with patch.
=== Notes
- I did test this with a custom post type as well. However, the original
issue didn't occur.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56819#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list