Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Commit a372282

Browse files
committed
Enable update button for 4.6.x when theme is not active
1 parent 023a0a6 commit a372282

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

js/compat/customize-snapshots.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,10 @@
269269
if ( ! snapshot.data.currentUserCanPublish ) {
270270
snapshot.snapshotButton.attr( 'title', api.state( 'snapshot-exists' ).get() ? snapshot.data.i18n.permsMsg.update : snapshot.data.i18n.permsMsg.save );
271271
}
272-
snapshot.snapshotButton.prop( 'disabled', true );
272+
273+
if ( api.state( 'activated' ).get() ) {
274+
snapshot.snapshotButton.prop( 'disabled', true );
275+
}
273276

274277
snapshot.snapshotButton.on( 'click', function( event ) {
275278
var status;

0 commit comments

Comments
 (0)