From 09c0f511d69899d8e41449cbf5f8e0ae99930d8e Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 14 Jun 2010 08:25:34 +0000 Subject: [PATCH] Use more specific selector. props CAMWebDesign, fixes #13880. git-svn-id: http://svn.automattic.com/wordpress/trunk@15248 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/custom-header.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index a93b0b771..7e889f5b5 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,