From 3ca83773a719bff9dde34d849351f353a3332c5f Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 14 Jun 2010 08:25:34 +0000 Subject: [PATCH] Use more specific selector. props CAMWebDesign, fixes #13880. git-svn-id: https://develop.svn.wordpress.org/trunk@15248 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 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,