Skip to content

Commit 4e1be40

Browse files
committed
Merge branch 'release/1.6.1'
2 parents 4a9f967 + 114ff55 commit 4e1be40

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
== Changelog ==
22

3+
= 1.6.1 - 25 November 2024 =
4+
* CSS Output Location: Additional check to ensure the default is Dedicated File.
5+
36
= 1.6.0 - 22 November 2024 =
47
* Added `Visual Editor: Decoration > Background Attachment` setting.
58
* Added CSS Ouput Location setting. Dedicated CSS File offers best performance, Internal CSS embeds styles in page HTML.

readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ SiteOrigin Premium includes access to our professional email support service, pe
7272

7373
== Changelog ==
7474

75+
= 1.6.1 - 25 November 2024 =
76+
* CSS Output Location: Additional check to ensure the default is Dedicated File.
77+
7578
= 1.6.0 - 22 November 2024 =
7679
* Added `Visual Editor: Decoration > Background Attachment` setting.
7780
* Added CSS Ouput Location setting. Dedicated CSS File offers best performance, Internal CSS embeds styles in page HTML.

so-css.php

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -319,11 +319,11 @@ public function enqueue_css() {
319319
*
320320
* This method retrieves the CSS output location setting from the
321321
* `so_css_output_location` option and returns true if the setting is
322-
* set to 'file' and false if it is set to 'inline'.
322+
* set to 'file'. Otherwise false is returned.
323323
*
324324
* @param string|null $location The unused default location value.
325325
*
326-
* @return bool True if the CSS should be output in a dedicated file, false if it should be inline.
326+
* @return bool True if the CSS should be output in a dedicated file.
327327
*/
328328
public function css_output_location( $location = null ) {
329329
$output_location = get_option(
@@ -1023,13 +1023,10 @@ private function get_latest_revision_timestamp() {
10231023
public function version_check() {
10241024
$version = get_option( 'so_css_version' );
10251025

1026-
// If there's no version set, check if this site already
1027-
// had SO CSS installed by checking for custom CSS.
1028-
if ( empty( $version ) ) {
1029-
update_option(
1030-
'so_css_output_location',
1031-
! empty( $this->get_custom_css( $this->theme ) ) ? 'inline' : 'file'
1032-
);
1026+
// If there's no version set or it's set to 1.6.0, check if
1027+
// this site already had SO CSS installed by checking for custom CSS.
1028+
if ( empty( $version ) || $version === '1.6.0' ) {
1029+
update_option( 'so_css_output_location', 'file' );
10331030
}
10341031

10351032
if ( empty( $version ) || version_compare( $version, SOCSS_VERSION, '<' ) ) {

0 commit comments

Comments
 (0)