WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#45935 new defect (bug)

A URL in do_block_editor_incompatible_meta_box function does not have classic-editor__forget parameter

Reported by: tmatsuur Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.0
Component: Editor Keywords: has-patch
Focuses: Cc:

Description

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-editorforget parameter as shown below.

$edit_url = add_query_arg( array( 'classic-editor'=>'', 'classic-editor__forget'=>'' ), get_edit_post_link( $object ) );

Attachments (1)

45935.diff (740 bytes) - added by mukesh27 4 months ago.
Patch tested in WordPress Beta version 5.1-beta1-44558

Download all attachments as: .zip

Change History (4)

#1 @mukesh27
4 months ago

  • Component changed from General to Editor
  • Keywords has-patch added

@tmatsuur that issue is already fixed in Classic Editor plugin https://wordpress.org/support/topic/switching-to-classic-editor-from-block-editor-doesnt-work/ but not resolve in core software.

@mukesh27
4 months ago

Patch tested in WordPress Beta version 5.1-beta1-44558

#2 @tmatsuur
4 months ago

@mukesh27 thanks.

#3 @earnjam
4 months ago

  • Version set to 5.0
Note: See TracTickets for help on using tickets.