[wp-trac] [WordPress Trac] #45935: A URL in do_block_editor_incompatible_meta_box function does not have classic-editor__forget parameter
WordPress Trac
noreply at wordpress.org
Fri Jan 11 04:50:27 UTC 2019
#45935: A URL in do_block_editor_incompatible_meta_box function does not have
classic-editor__forget parameter
--------------------------+-----------------------------
Reporter: tmatsuur | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
If there is an incompatible meta box in the block editor, a link to switch
to the classic editor will be displayed.
Clicking this link does not switch to the classic editor depending on the
post data.
do_block_editor_incompatible_meta_box function(/wp-
admin/includes/template.php)
{{{
$edit_url = add_query_arg( 'classic-editor', '', get_edit_post_link(
$object ) );
}}}
In this part, I think that you need the classic-editor__forget parameter
as shown below.
{{{
$edit_url = add_query_arg( array( 'classic-editor'=>'', 'classic-
editor__forget'=>'' ), get_edit_post_link( $object ) );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45935>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list