SiteOrigin CSS - Version 1.2.6

Version Description

  • 15 May 2020 =
  • Minor visual editor form styling fixes.
  • Resolved PHP 7.4 preg_replace() warning.
  • Moved the basic editor Save button to the sidebar.
Download this release

Release Info

Developer gpriday
Plugin Icon 128x128 SiteOrigin CSS
Version 1.2.6
Comparing to
See all releases

Code changes from version 1.2.5 to 1.2.6

Files changed (5) hide show
  1. css/admin.css +12 -0
  2. lang/so-css.pot +6 -6
  3. readme.txt +8 -3
  4. so-css.php +11 -13
  5. tpl/page.php +3 -4
css/admin.css CHANGED
@@ -57,6 +57,14 @@
57
  #so-custom-css-info *:last-child {
58
  margin-bottom: 0;
59
  }
 
 
 
 
 
 
 
 
60
  #so-custom-css-revisions ol {
61
  list-style: none;
62
  margin: 0;
@@ -334,6 +342,10 @@
334
  border-radius: 0;
335
  font-size: 12px;
336
  }
 
 
 
 
337
  #so-custom-css-properties .sections .fields-table .minicolors input {
338
  box-sizing: border-box;
339
  height: 30px;
57
  #so-custom-css-info *:last-child {
58
  margin-bottom: 0;
59
  }
60
+ #so-custom-css-info p.submit {
61
+ padding-top: 1px;
62
+ }
63
+ #so-custom-css-info p.submit .button-primary {
64
+ font-size: 14px;
65
+ min-height: 40px;
66
+ width: 100%;
67
+ }
68
  #so-custom-css-revisions ol {
69
  list-style: none;
70
  margin: 0;
342
  border-radius: 0;
343
  font-size: 12px;
344
  }
345
+ #so-custom-css-properties .sections .fields-table .socss-field-number input {
346
+ margin: 0;
347
+ width: 120px;
348
+ }
349
  #so-custom-css-properties .sections .fields-table .minicolors input {
350
  box-sizing: border-box;
351
  height: 30px;
lang/so-css.pot CHANGED
@@ -532,26 +532,26 @@ msgstr ""
532
  msgid "Editing revision dated %s. Click %sRevert to this revision%s to keep using it."
533
  msgstr ""
534
 
535
- #: tpl/page.php:42
536
  msgid "Get The Full Experience"
537
  msgstr ""
538
 
539
- #: tpl/page.php:44
540
  msgid "%sSiteOrigin Premium%s adds a <strong>Google Web Font</strong> selector to SiteOrigin CSS so you can easily change any font."
541
  msgstr ""
542
 
543
- #: tpl/page.php:52
544
  msgid "Getting Started Video"
545
  msgstr ""
546
 
547
- #: tpl/page.php:53
548
  msgid "Dismiss"
549
  msgstr ""
550
 
551
- #: tpl/page.php:62
552
  msgid "CSS Revisions"
553
  msgstr ""
554
 
555
- #: tpl/page.php:64
556
  msgid "Are you sure you want to load this revision?"
557
  msgstr ""
532
  msgid "Editing revision dated %s. Click %sRevert to this revision%s to keep using it."
533
  msgstr ""
534
 
535
+ #: tpl/page.php:45
536
  msgid "Get The Full Experience"
537
  msgstr ""
538
 
539
+ #: tpl/page.php:47
540
  msgid "%sSiteOrigin Premium%s adds a <strong>Google Web Font</strong> selector to SiteOrigin CSS so you can easily change any font."
541
  msgstr ""
542
 
543
+ #: tpl/page.php:55
544
  msgid "Getting Started Video"
545
  msgstr ""
546
 
547
+ #: tpl/page.php:56
548
  msgid "Dismiss"
549
  msgstr ""
550
 
551
+ #: tpl/page.php:65
552
  msgid "CSS Revisions"
553
  msgstr ""
554
 
555
+ #: tpl/page.php:67
556
  msgid "Are you sure you want to load this revision?"
557
  msgstr ""
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === SiteOrigin CSS ===
2
  Tags: css, design, edit, customize
3
  Requires at least: 3.9
4
- Tested up to: 5.4
5
- Stable tag: 1.2.5
6
- Build time: 2020-02-05T09:22:01+02:00
7
  License: GPLv2 or later
8
  Contributors: gpriday
9
  Donate link: https://siteorigin.com/downloads/premium/
@@ -65,6 +65,11 @@ We offer free support on the [SiteOrigin support forums](https://siteorigin.com/
65
 
66
  == Changelog ==
67
 
 
 
 
 
 
68
  = 1.2.5 - 05 February 2020 =
69
  * Removed `themeCSS` localized script to prevent `preg_replace()` warning.
70
  * Minor form styling fixes.
1
  === SiteOrigin CSS ===
2
  Tags: css, design, edit, customize
3
  Requires at least: 3.9
4
+ Tested up to: 5.5
5
+ Stable tag: 1.2.6
6
+ Build time: 2020-05-18T12:43:57+02:00
7
  License: GPLv2 or later
8
  Contributors: gpriday
9
  Donate link: https://siteorigin.com/downloads/premium/
65
 
66
  == Changelog ==
67
 
68
+ = 1.2.6 - 15 May 2020 =
69
+ * Minor visual editor form styling fixes.
70
+ * Resolved PHP 7.4 `preg_replace()` warning.
71
+ * Moved the basic editor Save button to the sidebar.
72
+
73
  = 1.2.5 - 05 February 2020 =
74
  * Removed `themeCSS` localized script to prevent `preg_replace()` warning.
75
  * Minor form styling fixes.
so-css.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: SiteOrigin CSS
4
  Description: An advanced CSS editor from SiteOrigin.
5
- Version: 1.2.5
6
  Author: SiteOrigin
7
  Author URI: https://siteorigin.com
8
  Plugin URI: https://siteorigin.com/css/
@@ -14,7 +14,7 @@ Text Domain: so-css
14
  // Handle the legacy CSS editor that came with SiteOrigin themes
15
  include plugin_dir_path( __FILE__ ) . 'inc/legacy.php';
16
 
17
- define( 'SOCSS_VERSION', '1.2.5' );
18
  define( 'SOCSS_JS_SUFFIX', '.min' );
19
 
20
  /**
@@ -676,11 +676,10 @@ class SiteOrigin_CSS {
676
 
677
  // Remove all CSS comments
678
  $regex = array(
679
- "`^([\t\s]+)`ism" => '',
680
- "`^\/\*(.+?)\*\/`ism" => "",
681
- "`([\n\A;]+)\/\*(.+?)\*\/`ism" => "$1",
682
- "`([\n\A;\s]+)//(.+?)[\n\r]`ism" => "$1\n",
683
- "`(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+`ism" => "\n"
684
  );
685
  $css = preg_replace( array_keys( $regex ), $regex, $css );
686
  $css = preg_replace( '/\s+/', ' ', $css );
@@ -724,13 +723,12 @@ class SiteOrigin_CSS {
724
  if ( ! current_user_can( 'edit_theme_options' ) ) {
725
  return;
726
  }
727
-
728
  $regex = array(
729
- "`^([\t\s]+)`ism" => '',
730
- "`^\/\*(.+?)\*\/`ism" => "",
731
- "`([\n\A;]+)\/\*(.+?)\*\/`ism" => "$1",
732
- "`([\n\A;\s]+)//(.+?)[\n\r]`ism" => "$1\n",
733
- "`(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+`ism" => "\n"
734
  );
735
 
736
  global $wp_styles;
2
  /*
3
  Plugin Name: SiteOrigin CSS
4
  Description: An advanced CSS editor from SiteOrigin.
5
+ Version: 1.2.6
6
  Author: SiteOrigin
7
  Author URI: https://siteorigin.com
8
  Plugin URI: https://siteorigin.com/css/
14
  // Handle the legacy CSS editor that came with SiteOrigin themes
15
  include plugin_dir_path( __FILE__ ) . 'inc/legacy.php';
16
 
17
+ define( 'SOCSS_VERSION', '1.2.6' );
18
  define( 'SOCSS_JS_SUFFIX', '.min' );
19
 
20
  /**
676
 
677
  // Remove all CSS comments
678
  $regex = array(
679
+ "`^([\t\s]+)`ism" => '',
680
+ "`^\/\*(.+?)\*\/`ism" => "",
681
+ "`(\A|[\n;]+)/\*[^*]*\*+(?:[^/*][^*]*\*+)*/`" => "$1",
682
+ "`(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+`ism" => "\n"
 
683
  );
684
  $css = preg_replace( array_keys( $regex ), $regex, $css );
685
  $css = preg_replace( '/\s+/', ' ', $css );
723
  if ( ! current_user_can( 'edit_theme_options' ) ) {
724
  return;
725
  }
726
+
727
  $regex = array(
728
+ "`^([\t\s]+)`ism" => '',
729
+ "`^\/\*(.+?)\*\/`ism" => "",
730
+ "`(\A|[\n;]+)/\*[^*]*\*+(?:[^/*][^*]*\*+)*/`" => "$1",
731
+ "`(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+`ism" => "\n"
 
732
  );
733
 
734
  global $wp_styles;
tpl/page.php CHANGED
@@ -36,6 +36,9 @@ if ( ! empty( $current_revision ) ) {
36
 
37
  <div id="poststuff">
38
  <div id="so-custom-css-info">
 
 
 
39
 
40
  <?php if( $this->display_teaser() ) : ?>
41
  <div class="postbox">
@@ -102,10 +105,6 @@ if ( ! empty( $current_revision ) ) {
102
  </div>
103
  <p class="description"><?php esc_html_e( $editor_description ) ?></p>
104
 
105
- <p class="submit">
106
- <input type="submit" name="siteorigin_custom_css_save" class="button-primary" value="<?php esc_attr_e( $save_button_label ); ?>" />
107
- </p>
108
-
109
  <div class="custom-css-preview">
110
 
111
  </div>
36
 
37
  <div id="poststuff">
38
  <div id="so-custom-css-info">
39
+ <p class="submit">
40
+ <input type="submit" name="siteorigin_custom_css_save" class="button-primary" value="<?php esc_attr_e( $save_button_label ); ?>" />
41
+ </p>
42
 
43
  <?php if( $this->display_teaser() ) : ?>
44
  <div class="postbox">
105
  </div>
106
  <p class="description"><?php esc_html_e( $editor_description ) ?></p>
107
 
 
 
 
 
108
  <div class="custom-css-preview">
109
 
110
  </div>