diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
index 9f385a003..c2aaf9427 100644
|
|
|
4366 | 4366 | save: function( args ) { |
4367 | 4367 | var previewer = this, |
4368 | 4368 | deferred = $.Deferred(), |
4369 | | changesetStatus = 'publish', |
| 4369 | changesetStatus = '', |
4370 | 4370 | processing = api.state( 'processing' ), |
4371 | 4371 | submitWhenDoneProcessing, |
4372 | 4372 | submit, |
… |
… |
|
4424 | 4424 | * Note that excludeCustomizedSaved is intentionally false so that the entire |
4425 | 4425 | * set of customized data will be included if bypassed changeset update. |
4426 | 4426 | */ |
4427 | | query = $.extend( previewer.query( { excludeCustomizedSaved: false } ), { |
4428 | | nonce: previewer.nonce.save, |
4429 | | customize_changeset_status: changesetStatus |
4430 | | } ); |
| 4427 | query = { |
| 4428 | nonce: previewer.nonce.save |
| 4429 | }; |
| 4430 | if ( changesetStatus ){ |
| 4431 | query.customize_changeset_status = changesetStatus; |
| 4432 | } |
| 4433 | query = $.extend( previewer.query( { excludeCustomizedSaved: false } ), query ); |
4431 | 4434 | if ( args && args.date ) { |
4432 | 4435 | query.customize_changeset_date = args.date; |
4433 | 4436 | } |
… |
… |
|
4473 | 4476 | } else if ( 'not_logged_in' === response ) { |
4474 | 4477 | previewer.preview.iframe.hide(); |
4475 | 4478 | previewer.login().done( function() { |
4476 | | previewer.save(); |
| 4479 | previewer.save( { status: 'publish' } ); |
4477 | 4480 | previewer.preview.iframe.show(); |
4478 | 4481 | } ); |
4479 | 4482 | } |
… |
… |
|
4764 | 4767 | |
4765 | 4768 | // Button bindings. |
4766 | 4769 | saveBtn.click( function( event ) { |
4767 | | api.previewer.save(); |
| 4770 | api.previewer.save( { status: 'publish' } ); |
4768 | 4771 | event.preventDefault(); |
4769 | 4772 | }).keydown( function( event ) { |
4770 | 4773 | if ( 9 === event.which ) // tab |
4771 | 4774 | return; |
4772 | 4775 | if ( 13 === event.which ) // enter |
4773 | | api.previewer.save(); |
| 4776 | api.previewer.save( { status: 'publish' } ); |
4774 | 4777 | event.preventDefault(); |
4775 | 4778 | }); |
4776 | 4779 | |