Skip to content

Commit

Permalink
Merge branch 'release/1.5.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
Misplon committed Sep 30, 2022
2 parents 9bc10a0 + 8c05a6a commit b37a146
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ SiteOrigin Premium includes access to our professional email support service, pe

== Changelog ==

= 1.5.5 - 30 September 2022 =
* Added a check to ensure WP Filesystem is setup.

= 1.5.4 - 28 September 2022 =
* Developer: Introduced definable Custom CSS file name and location using `siteorigin_custom_css_file` and `siteorigin_css_enqueue_css`.

Expand Down
6 changes: 6 additions & 0 deletions so-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ function __construct() {

// Main header actions
add_action( 'plugins_loaded', array( $this, 'set_plugin_textdomain' ) );

global $wp_filesystem;
if ( ! class_exists( 'wp_filesystem' ) ) {
require_once( ABSPATH . '/wp-admin/includes/file.php' );
WP_Filesystem();
}

// Priority 20 is necessary to ensure our CSS takes precedence.
add_action( 'wp_head', array( $this, 'enqueue_css' ), 20 );
Expand Down

0 comments on commit b37a146

Please sign in to comment.