From f38ae9cc6cd9cde48df49e24c0b70b3d2fcaa1cd Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 3 Dec 2013 18:20:19 +0000 Subject: [PATCH] Use jQuery.prop('checked') instead of jQuery.attr. props Frank Klein. fixes #26378. git-svn-id: https://develop.svn.wordpress.org/trunk@26571 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/options-general.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/options-general.php b/src/wp-admin/options-general.php index 65353325f0..f294600829 100644 --- a/src/wp-admin/options-general.php +++ b/src/wp-admin/options-general.php @@ -32,7 +32,7 @@ function options_general_add_js() { $("input[name='date_format_custom']").val( $(this).val() ).siblings('.example').text( $(this).siblings('span').text() ); }); $("input[name='date_format_custom']").focus(function(){ - $("#date_format_custom_radio").attr("checked", "checked"); + $( '#date_format_custom_radio' ).prop( 'checked', true ); }); $("input[name='time_format']").click(function(){ @@ -40,7 +40,7 @@ function options_general_add_js() { $("input[name='time_format_custom']").val( $(this).val() ).siblings('.example').text( $(this).siblings('span').text() ); }); $("input[name='time_format_custom']").focus(function(){ - $("#time_format_custom_radio").attr("checked", "checked"); + $( '#time_format_custom_radio' ).prop( 'checked', true ); }); $("input[name='date_format_custom'], input[name='time_format_custom']").change( function() { var format = $(this);