WordPress.org

Make WordPress Core

Changeset 45618


Ignore:
Timestamp:
07/11/2019 06:00:39 AM (22 months ago)
Author:
pento
Message:

Block Editor: Fix the link to the classic editor when incompatible meta boxen are detected.

Props tmatsuur, mukesh27.
Fixes #45935.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r45611 r45618  
    11231123        }
    11241124    } elseif ( $object instanceof WP_Post ) {
    1125         $edit_url = add_query_arg( 'classic-editor', '', get_edit_post_link( $object ) );
     1125        $edit_url = add_query_arg(
     1126            array(
     1127                'classic-editor'         => '',
     1128                'classic-editor__forget' => '',
     1129            ),
     1130            get_edit_post_link( $object )
     1131        );
    11261132        echo '<p>';
    11271133        /* translators: %s: A link to use the Classic Editor plugin. */
Note: See TracChangeset for help on using the changeset viewer.