We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gpps-live-refresh.php
1 parent ca433bf commit 2999cedCopy full SHA for 2999ced
gp-preview-submission/gpps-live-refresh.php
@@ -88,7 +88,16 @@ public function output_script() {
88
};
89
90
self.$form.find( 'input, select, textarea' ).each( function() {
91
- data[ $( this ).attr( 'name' ) ] = $( this ).val();
+ var $input = $( this ),
92
+ name = $input.attr( 'name' );
93
+
94
+ if ( $input.is(':radio') ) {
95
+ if ( $input.is(':checked') ) {
96
+ data[name] = $input.val();
97
+ }
98
+ } else {
99
100
101
} );
102
103
$.post( self.ajaxUrl, data, function( response ) {
0 commit comments