From 44cfe9d8b3aa1302468e009bc3d8d7ca1892f665 Mon Sep 17 00:00:00 2001 From: azaozz Date: Sat, 14 May 2011 00:43:58 +0000 Subject: [PATCH] FIx static front page selector in Settings-Writing, props JDTrower duck_, fixes #17421 git-svn-id: http://svn.automattic.com/wordpress/trunk@17923 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-reading.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/options-reading.php b/wp-admin/options-reading.php index 832f22a13..08c408ec2 100644 --- a/wp-admin/options-reading.php +++ b/wp-admin/options-reading.php @@ -30,7 +30,7 @@ function add_js() { staticPage = section.find('input:radio[value="page"]'), selects = section.find('select'), check_disabled = function(){ - selects.attr('disabled', staticPage.is(':checked') ? '' : 'disabled'); + selects.prop( 'disabled', ! staticPage.prop('checked') ); }; check_disabled(); section.find('input:radio').change(check_disabled);