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 { - +
+ show_default_header_selector(); ?> @@ -496,7 +501,7 @@ class Custom_Image_Header {
@@ -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'];