X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/4f9d63e13cd8c6e275797c75b401b074b82937bc..0278c4b31e94c74bb5da5832653ad26e14a7b275:/wp-admin/custom-header.php?ds=sidebyside diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 7e889f5b..f1567f09 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -456,7 +456,7 @@ class Custom_Image_Header { - + @@ -468,11 +468,12 @@ class Custom_Image_Header { - +

+ @@ -483,7 +484,11 @@ class Custom_Image_Header { +

+ +

+ show_default_header_selector(); ?> @@ -496,7 +501,7 @@ class Custom_Image_Header {

- +

- + @@ -545,7 +550,7 @@ class Custom_Image_Header {

- + @@ -554,8 +559,11 @@ class Custom_Image_Header { -

+ + @@ -568,6 +576,9 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> */ function step_2() { check_admin_referer('custom-header-upload', '_wpnonce-custom-header-upload'); + if ( ! current_theme_supports( 'custom-header-uploads' ) ) + wp_die( 'Cheatin’ uh?' ); + $overrides = array('test_form' => false); $file = wp_handle_upload($_FILES['import'], $overrides); @@ -626,7 +637,6 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> -

@@ -634,7 +644,8 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> - + +

@@ -648,6 +659,9 @@ wp_nonce_field( 'custom-header-options', '_wpnonce-custom-header-options' ); ?> */ function step_3() { check_admin_referer('custom-header-crop-image'); + if ( ! current_theme_supports( 'custom-header-uploads' ) ) + wp_die( 'Cheatin’ uh?' ); + if ( $_POST['oitar'] > 1 ) { $_POST['x1'] = $_POST['x1'] * $_POST['oitar']; $_POST['y1'] = $_POST['y1'] * $_POST['oitar'];