mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
General: Further improve error messages following [42648].
Props kristastevens, melchoyce. Fixes #38332 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@42719 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -758,7 +758,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' );
|
||||
check_admin_referer( 'custom-header-upload', '_wpnonce-custom-header-upload' );
|
||||
if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) {
|
||||
wp_die(
|
||||
'<h1>' . __( 'An error has occurred.' ) . '</h1>' .
|
||||
'<h1>' . __( 'Something went wrong.' ) . '</h1>' .
|
||||
'<p>' . __( 'The current theme does not support uploading a custom header image.' ) . '</p>',
|
||||
403
|
||||
);
|
||||
@@ -922,7 +922,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' );
|
||||
|
||||
if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) {
|
||||
wp_die(
|
||||
'<h1>' . __( 'An error has occurred.' ) . '</h1>' .
|
||||
'<h1>' . __( 'Something went wrong.' ) . '</h1>' .
|
||||
'<p>' . __( 'The current theme does not support uploading a custom header image.' ) . '</p>',
|
||||
403
|
||||
);
|
||||
@@ -930,7 +930,7 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' );
|
||||
|
||||
if ( ! empty( $_POST['skip-cropping'] ) && ! ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) ) {
|
||||
wp_die(
|
||||
'<h1>' . __( 'An error has occurred.' ) . '</h1>' .
|
||||
'<h1>' . __( 'Something went wrong.' ) . '</h1>' .
|
||||
'<p>' . __( 'The current theme does not support a flexible sized header image.' ) . '</p>',
|
||||
403
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user