[wp-trac] [WordPress Trac] #52950: add_meta_box issue in wordpress 5.7
WordPress Trac
noreply at wordpress.org
Wed Mar 31 13:09:45 UTC 2021
#52950: add_meta_box issue in wordpress 5.7
-------------------------------+-----------------------------
Reporter: daniyalkrl | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 5.7
Severity: major | Keywords:
Focuses: |
-------------------------------+-----------------------------
I recently moved to the new WordPress version 5.7 and now I am facing an
issue in the add_meta_box function in function.php. The issue I am facing
is the custom post type ID which I added in the add_meta_box function is
conflicts with my custom post slug. Whenever I add a new post or open an
existing post it shows a pre-generated slug from that custom post type
without saving. Please see my code below.
{{{#!php
<?php
add_meta_box(
'cpt_1322',
'Productions',
'production_meta_post_callback',
'cpt_1322',
'side',
'default'
);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52950>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list