Customize: Improve accuracy of message displayed when accessing Customizer with a changeset that is already published or trashed.
Amends [38810]. Props dlh. Fixes #42497 for 4.9 branch. Built from https://develop.svn.wordpress.org/branches/4.9@42535 git-svn-id: http://core.svn.wordpress.org/branches/4.9@42364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2e8c881ff4
commit
2441c3c3f1
|
@ -77,7 +77,7 @@ if ( $wp_customize->changeset_post_id() ) {
|
||||||
if ( in_array( get_post_status( $changeset_post->ID ), array( 'publish', 'trash' ), true ) ) {
|
if ( in_array( get_post_status( $changeset_post->ID ), array( 'publish', 'trash' ), true ) ) {
|
||||||
wp_die(
|
wp_die(
|
||||||
'<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' .
|
'<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>',
|
'<p><a href="' . esc_url( remove_query_arg( 'changeset_uuid' ) ) . '">' . __( 'Customize New Changes' ) . '</a></p>',
|
||||||
403
|
403
|
||||||
);
|
);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9.3-alpha-42534';
|
$wp_version = '4.9.3-alpha-42535';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue