Make WordPress Core


Ignore:
Timestamp:
08/19/2019 04:52:01 AM (6 years ago)
Author:
SergeyBiryukov
Message:

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

Props tmatsuur, mukesh27.
Merges [45618] to the 5.2 branch.
Fixes #45935.

Location:
branches/5.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.2

  • branches/5.2/src/wp-admin/includes/template.php

    r45834 r45848  
    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.