From 73fe19d286149b6cecb3eec4628acc1e83c5bcb9 Mon Sep 17 00:00:00 2001 From: Andrew Ozz 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: https://develop.svn.wordpress.org/trunk@17923 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 832f22a133..08c408ec22 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);