Skip to content

Commit

Permalink
Merge branch 'release/1.2.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
Misplon committed May 19, 2020
2 parents 7dc6177 + dd3e337 commit 6d0288b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 4 additions & 0 deletions js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1817,4 +1817,8 @@ jQuery( function ( $ ) {

window.socss.mainEditor = editor;
$( socss ).trigger( 'initialized' );

$( '.button-primary[name="siteorigin_custom_css_save"]' ).click( function() {
$( '#so-custom-css-form' ).submit();
} );
} );
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ We offer free support on the [SiteOrigin support forums](https://siteorigin.com/

== Changelog ==

= 1.2.7 - 19 May 2020 =
* Restored `Save` button functionality.

= 1.2.6 - 15 May 2020 =
* Minor visual editor form styling fixes.
* Resolved PHP 7.4 `preg_replace()` warning.
Expand Down
4 changes: 2 additions & 2 deletions so-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ function action_admin_menu() {
$this,
'display_admin_page'
) );
if ( current_user_can( 'edit_theme_options' ) && isset( $_POST['siteorigin_custom_css_save'] ) ) {

if ( current_user_can( 'edit_theme_options' ) && isset( $_POST['custom_css'] ) ) {
check_admin_referer( 'custom_css', '_sononce' );

// Sanitize CSS input. Should keep most tags, apart from script and style tags.
Expand Down
2 changes: 1 addition & 1 deletion tpl/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</h2>


<?php if( isset($_POST['siteorigin_custom_css_save']) ) : ?>
<?php if( isset($_POST['custom_css']) ) : ?>
<div class="notice notice-success"><p><?php _e('Site design updated.', 'so-css') ?></p></div>
<?php endif; ?>

Expand Down

0 comments on commit 6d0288b

Please sign in to comment.