Ticket #26596: wp_allow_radio_repy_comments.diff
File wp_allow_radio_repy_comments.diff, 719 bytes (added by , 10 years ago) |
---|
-
wp-admin/js/edit-comments.js
470 470 471 471 $('#replyrow input').not(':button').each(function() { 472 472 var t = $(this); 473 post[ t.attr('name') ] = t.val(); 473 /* 474 * allow radio buttons in admin section or reply commentaries 475 * @issue http://core.trac.wordpress.org/ticket/26596 476 */ 477 if (t.is(':radio')) 478 { 479 if (t.prop("checked") == true) 480 { 481 post[ t.attr('name') ] = t.val(); 482 } 483 } 484 else 485 { 486 post[ t.attr('name') ] = t.val(); 487 } 474 488 }); 475 489 476 490 post.content = $('#replycontent').val();