WordPress.org

Make WordPress Core

Ticket #18173: custom-header.diff

File custom-header.diff, 885 bytes (added by Latz, 4 years ago)

Diff created with svn, replaces older diff

  • wp-admin/custom-header.php

     
    629629        function step_2() { 
    630630                check_admin_referer('custom-header-upload', '_wpnonce-custom-header-upload'); 
    631631                if ( ! current_theme_supports( 'custom-header-uploads' ) ) 
    632                         wp_die( 'Cheatin’ uh?' ); 
     632                        wp_die( __( 'Cheatin’ uh?' ) ); 
    633633 
    634634                $overrides = array('test_form' => false); 
    635635                $file = wp_handle_upload($_FILES['import'], $overrides); 
     
    715715        function step_3() { 
    716716                check_admin_referer('custom-header-crop-image'); 
    717717                if ( ! current_theme_supports( 'custom-header-uploads' ) ) 
    718                         wp_die( 'Cheatin’ uh?' ); 
     718                        wp_die( __( 'Cheatin’ uh?' ) ); 
    719719 
    720720                if ( $_POST['oitar'] > 1 ) { 
    721721                        $_POST['x1'] = $_POST['x1'] * $_POST['oitar'];