Make WordPress Core

Ticket #33667: 33667.patch

File 33667.patch, 1.5 KB (added by kraftbj, 8 years ago)

identical to original ticket. props to ericlewis

  • src/wp-admin/custom-header.php

     
    684684        public function step_2() {
    685685                check_admin_referer('custom-header-upload', '_wpnonce-custom-header-upload');
    686686                if ( ! current_theme_supports( 'custom-header', 'uploads' ) )
    687                         wp_die( __( 'Cheatin’ uh?' ), 403 );
     687                        wp_die(
     688                                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
     689                                '<p>' . __( 'The current theme does not support uploading a custom header image.' ) . '</p>',
     690                                403 );
    688691
    689692                if ( empty( $_POST ) && isset( $_GET['file'] ) ) {
    690693                        $attachment_id = absint( $_GET['file'] );
     
    835838                check_admin_referer( 'custom-header-crop-image' );
    836839
    837840                if ( ! current_theme_supports( 'custom-header', 'uploads' ) )
    838                         wp_die( __( 'Cheatin&#8217; uh?' ), 403 );
     841                        wp_die(
     842                                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
     843                                '<p>' . __( 'The current theme does not support uploading a custom header image.' ) . '</p>',
     844                                403 );
    839845
    840846                if ( ! empty( $_POST['skip-cropping'] ) && ! ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) )
    841                         wp_die( __( 'Cheatin&#8217; uh?' ), 403 );
     847                        wp_die(
     848                                '<h1>' . __( 'Cheatin&#8217; uh?' ) . '</h1>' .
     849                                '<p>' . __( 'The current theme does not support a flexible sized header image.' ) . '</p>',
     850                                403 );
    842851
    843852                if ( $_POST['oitar'] > 1 ) {
    844853                        $_POST['x1'] = $_POST['x1'] * $_POST['oitar'];