Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions includes/class-freemius.php
Original file line number Diff line number Diff line change
Expand Up @@ -3460,8 +3460,8 @@ private static function _load_required_static() {

FS_DebugManager::load_required_static();

if ( 0 == did_action( 'plugins_loaded' ) ) {
add_action( 'plugins_loaded', array( 'Freemius', '_load_textdomain' ), 1 );
if (is_admin()) {
add_action( 'init', array( 'Freemius', '_load_textdomain' ), 1 );
}

$clone_manager = FS_Clone_Manager::instance();
Expand Down Expand Up @@ -3686,10 +3686,6 @@ public static function migrate_options_to_network() {
* @since 1.2.1
*/
static function _load_textdomain() {
if ( ! is_admin() ) {
return;
}

global $fs_active_plugins;

// Works both for plugins and themes.
Expand Down