Customize: Improve accuracy of message displayed when accessing Customizer with a changeset that is already published or trashed.
Amends [38810]. Props dlh. Fixes #42497. git-svn-id: https://develop.svn.wordpress.org/trunk@42150 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d0fefcde8b
commit
f42f19e1c5
@ -77,7 +77,7 @@ if ( $wp_customize->changeset_post_id() ) {
|
||||
if ( in_array( get_post_status( $changeset_post->ID ), array( 'publish', 'trash' ), true ) ) {
|
||||
wp_die(
|
||||
'<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' .
|
||||
'<p>' . __( 'This changeset has already been published and cannot be further modified.' ) . '</p>' .
|
||||
'<p>' . __( 'This changeset cannot be further modified.' ) . '</p>' .
|
||||
'<p><a href="' . esc_url( remove_query_arg( 'changeset_uuid' ) ) . '">' . __( 'Customize New Changes' ) . '</a></p>',
|
||||
403
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user