Compare commits
2 Commits
f05ab77418
...
fix-15
Author | SHA1 | Date | |
---|---|---|---|
a9953fccf9 | |||
62729e05bd |
@ -61,7 +61,7 @@ class Whitelabel {
|
|||||||
*/
|
*/
|
||||||
public function init(): void {
|
public function init(): void {
|
||||||
|
|
||||||
add_action('wp_ultimo_load', [$this, 'add_settings'], 20);
|
add_action('init', [$this, 'add_settings'], 20);
|
||||||
|
|
||||||
add_action('admin_init', [$this, 'clear_footer_texts']);
|
add_action('admin_init', [$this, 'clear_footer_texts']);
|
||||||
|
|
||||||
@ -85,9 +85,6 @@ class Whitelabel {
|
|||||||
|
|
||||||
add_action('wp_dashboard_setup', [$this, 'remove_dashboard_widgets'], 11);
|
add_action('wp_dashboard_setup', [$this, 'remove_dashboard_widgets'], 11);
|
||||||
|
|
||||||
add_action('admin_enqueue_scripts', [$this, 'enqueue_styles']);
|
|
||||||
|
|
||||||
add_action('wp_enqueue_scripts', [$this, 'enqueue_styles']);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wu_get_setting('hide_sites_menu', true)) {
|
if (wu_get_setting('hide_sites_menu', true)) {
|
||||||
@ -291,6 +288,7 @@ class Whitelabel {
|
|||||||
global $wp_admin_bar;
|
global $wp_admin_bar;
|
||||||
|
|
||||||
$wp_admin_bar->remove_menu('wp-logo');
|
$wp_admin_bar->remove_menu('wp-logo');
|
||||||
|
$this->enqueue_styles();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -231,9 +231,11 @@ final class WP_Ultimo {
|
|||||||
*/
|
*/
|
||||||
public function setup_textdomain(): void {
|
public function setup_textdomain(): void {
|
||||||
/*
|
/*
|
||||||
* Loads the translation files.
|
* Loads the translation files at the init action to prevent "too early" warnings in WP 6.7+
|
||||||
*/
|
*/
|
||||||
load_plugin_textdomain('wp-ultimo', false, dirname((string) WP_ULTIMO_PLUGIN_BASENAME) . '/lang');
|
add_action('init', function() {
|
||||||
|
load_plugin_textdomain('wp-ultimo', false, dirname((string) WP_ULTIMO_PLUGIN_BASENAME) . '/lang');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user