Ticket #33667: 33667.patch
File 33667.patch, 1.5 KB (added by , 8 years ago) |
---|
-
src/wp-admin/custom-header.php
684 684 public function step_2() { 685 685 check_admin_referer('custom-header-upload', '_wpnonce-custom-header-upload'); 686 686 if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) 687 wp_die( __( 'Cheatin’ uh?' ), 403 ); 687 wp_die( 688 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 689 '<p>' . __( 'The current theme does not support uploading a custom header image.' ) . '</p>', 690 403 ); 688 691 689 692 if ( empty( $_POST ) && isset( $_GET['file'] ) ) { 690 693 $attachment_id = absint( $_GET['file'] ); … … 835 838 check_admin_referer( 'custom-header-crop-image' ); 836 839 837 840 if ( ! current_theme_supports( 'custom-header', 'uploads' ) ) 838 wp_die( __( 'Cheatin’ uh?' ), 403 ); 841 wp_die( 842 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 843 '<p>' . __( 'The current theme does not support uploading a custom header image.' ) . '</p>', 844 403 ); 839 845 840 846 if ( ! empty( $_POST['skip-cropping'] ) && ! ( current_theme_supports( 'custom-header', 'flex-height' ) || current_theme_supports( 'custom-header', 'flex-width' ) ) ) 841 wp_die( __( 'Cheatin’ uh?' ), 403 ); 847 wp_die( 848 '<h1>' . __( 'Cheatin’ uh?' ) . '</h1>' . 849 '<p>' . __( 'The current theme does not support a flexible sized header image.' ) . '</p>', 850 403 ); 842 851 843 852 if ( $_POST['oitar'] > 1 ) { 844 853 $_POST['x1'] = $_POST['x1'] * $_POST['oitar'];