[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
Tue Jan 27 11:00:29 UTC 2026
#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: dev-feedback reporter- | Focuses: administration,
feedback | multisite, performance
-------------------------------------+-------------------------------------
Changes (by sajib1223):
* keywords: needs-patch needs-testing dev-feedback reporter-feedback =>
dev-feedback reporter-feedback
Comment:
== Reproduction Report
=== Description
This report validates whether the issue can be reproduced.
=== Environment
- WordPress: 7.0-alpha-61215-src
- PHP: 8.2.29
- Server: nginx/1.27.5
- Database: mysqli (Server: 8.4.7 / Client: mysqlnd 8.2.29)
- Browser: Firefox 147.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.4
- MU Plugins: None activated
- Plugins:
* Test Reports 1.2.1
* Test Ticket 63653 1.0.0
=== Actual Results
1. ❌ Unable to reproduce the issue.
2. No errors logged in wp-content/debug.log
=== Steps to Reproduce
- Enable debug log, debug display and debugging.
- Add following code to a plugin.
{{{#!php
<?php
/*
Plugin Name: Test Ticket 63653
Version: 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
die();
}
add_action( 'init', function() {
register_post_type( 'podcast', array(
'label' => 'Podcasts',
'public' => true,
'show_in_rest' => true,
'has_archive' => true,
'supports' => array( 'title', 'editor', 'thumbnail' ),
) );
} );
}}}
- Activate the plugin.
- Create a `podcast` post.
- Go back to Podcast post list table page.
- Click to edit the post, make any changes and save
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63653#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list