[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
Wed Jul 2 13:58:52 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                           |
-------------------------------------+-------------------------------------
Changes (by mindctrl):

 * keywords:  needs-patch needs-testing dev-feedback => needs-patch needs-
     testing dev-feedback reporter-feedback


Comment:

 Hi @locke85,

 Welcome to Trac and thanks for the report.

 Could you provide more details about your environment? Which plugins do
 you have activated? Which theme? Can you show the code you're using to
 register the post type?

 I did a quick test on a new vanilla site with a custom post type and was
 unable to reproduce the error.

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


More information about the wp-trac mailing list