Skip to content

Commit c10b056

Browse files
authored
[icon-url] Fixed an issue where $fs_active_plugins->plugins was not set, which affected get_local_icon_url(). (#776)
1 parent 7f58ad3 commit c10b056

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

includes/class-freemius.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25478,7 +25478,7 @@ function get_local_icon_url() {
2547825478
$img_dir = WP_FS__DIR_IMG;
2547925479

2548025480
// Locate the main assets folder.
25481-
if ( 1 < count( $fs_active_plugins->plugins ) ) {
25481+
if ( ! empty( $fs_active_plugins->plugins ) ) {
2548225482
$plugin_or_theme_img_dir = ( $this->is_plugin() ? WP_PLUGIN_DIR : get_theme_root( get_stylesheet() ) );
2548325483

2548425484
foreach ( $fs_active_plugins->plugins as $sdk_path => &$data ) {

start.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* @var string
1717
*/
18-
$this_sdk_version = '2.10.1.1';
18+
$this_sdk_version = '2.10.1.2';
1919

2020
#region SDK Selection Logic --------------------------------------------------------------------
2121

0 commit comments

Comments
 (0)