Description
Related to #75939.
A user without custom fields enabled in their editor can open a post that is been edited by a user custom fields enabled in their editor.
Step-by-step reproduction instructions
- Enable RTC
- Create a user with authoring permissions (I used a collabortator)
- In a private/incognito browser log in as the second user
- Create a post
- Go to [...] > Preferences
- Enable custom fields
- Save and reload
- Write a short post
- Add some custom data to the custom fields
- Save the daft post
- Keep the editor open in the private browser and return to the original window as the first user
- Navigate to/reload all posts
- Click the post title created in the private browser window
- Observe you can edit the post.
Screenshots, screen recording, code snippet
Environment info
- WordPress: 6.9.2-alpha-61586
- PHP: 8.3.25
- Server: nginx/1.18.0
- Database: mysqli (Server: 8.0.36-0ubuntu0.22.04.1 / Client: mysqlnd 8.3.25)
- Browser: Firefox 148.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.4
- MU Plugins:
- auto-activate-plugins.php
- block-bindings.php
- query-monitor-file-mappings.php
- _admin_bar_gb_status.php
- Plugins:
- Gutenberg 22.7.0-rc.1
- Query Monitor 3.20.2
- Test Reports 1.2.1
- User Switching 1.11.2
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
Description
Related to #75939.
A user without custom fields enabled in their editor can open a post that is been edited by a user custom fields enabled in their editor.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.