[wp-trac] [WordPress Trac] #63653: map_meta_cap() fails in wp_refresh_post_lock() for custom post types not registered before init
WordPress Trac
noreply at wordpress.org
Fri Jul 11 13:16:30 UTC 2025
#63653: map_meta_cap() fails in wp_refresh_post_lock() for custom post types not
registered before init
-------------------------------------+-------------------------------------
Reporter: locke85 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 6.8
Severity: normal | Resolution:
Keywords: needs-patch needs- | Focuses: administration,
testing dev-feedback reporter- | multisite, performance
feedback |
-------------------------------------+-------------------------------------
Comment (by mindctrl):
@locke85 thanks for the extra details. I tried to reproduce this again,
with just WP, Seriously Simple Podcasting, and the default 2025 theme, and
I'm still unable to reproduce it.
{{{
=== Environment
- WordPress: 6.8.1
- PHP: 8.2.27
- Server: nginx/1.26.1
- Database: mysqli (Server: 8.0.35 / Client: mysqlnd 8.2.27)
- Browser: Chrome 138.0.0.0
- OS: macOS
- Theme: Twenty Twenty-Five 1.2
- MU Plugins: None activated
- Plugins:
* Query Monitor 3.18.0
* Seriously Simple Podcasting 3.10.4
* Test Reports 1.2.0
}}}
I'm wondering if some other plugin or the theme is conflicting. Also, the
podcast plugin registers its podcast post type on init at priority 11,
whereas the default of 10 is most common. I wonder if, in your setup,
changing that priority to 10 would make any difference. Either way, I
don't think this is a WP core bug, unless it only surfaces with a certain
configuration.
Are you able to deactivate plugins, switch to the default theme, and see
if it still happens? If it does not happen, start reactivating plugins one
by one and see when it starts showing up again.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63653#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list