WordPress.org

Make WordPress Core

Ticket #45935: 45935.diff

File 45935.diff, 740 bytes (added by mukesh27, 2 years ago)

Patch tested in WordPress Beta version 5.1-beta1-44558

  • wp-admin/includes/template.php

    diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
    index ce22688..d4fb106 100644
    a b function do_block_editor_incompatible_meta_box( $object, $box ) { 
    11241124                        echo '</p>';
    11251125                }
    11261126        } elseif ( $object instanceof WP_Post ) {
    1127                 $edit_url = add_query_arg( 'classic-editor', '', get_edit_post_link( $object ) );
     1127                $edit_url = add_query_arg( array( 'classic-editor'=>'', 'classic-editor__forget'=>'' ), get_edit_post_link( $object ) );
    11281128                echo '<p>';
    11291129                /* translators: %s: A link to use the Classic Editor plugin. */
    11301130                printf( __( 'Please open the <a href="%s">classic editor</a> to use this meta box.' ), esc_url( $edit_url ) );