diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index a93b0b7711..7e889f5b55 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -371,8 +371,8 @@ class Custom_Image_Header { var xinit = ; var yinit = ; var ratio = xinit / yinit; - var ximg = jQuery('#upload').width(); - var yimg = jQuery('#upload').height(); + var ximg = jQuery('img#upload').width(); + var yimg = jQuery('img#upload').height(); if ( yimg < yinit || ximg < xinit ) { if ( ximg / yimg > ratio ) { @@ -384,7 +384,7 @@ class Custom_Image_Header { } } - jQuery('#upload').imgAreaSelect({ + jQuery('img#upload').imgAreaSelect({ handles: true, keys: true, aspectRatio: xinit + ':' + yinit,