- fixed enqueue dependencies;

This commit is contained in:
Mykyta Synelnikov
2023-11-11 01:46:08 +02:00
parent d4bf50f6b2
commit f0a16ea2fb
6 changed files with 9 additions and 10 deletions
+3 -4
View File
@@ -108,10 +108,9 @@ final class Enqueue extends \um\common\Enqueue {
wp_register_script( 'um_admin_blocks_shortcodes', $js_url . 'admin/block-renderer' . $suffix . '.js', array( 'wp-i18n', 'wp-blocks', 'wp-components' ), UM_VERSION, true );
wp_set_script_translations( 'um_admin_blocks_shortcodes', 'ultimate-member' );
if ( ! empty( UM()->account()->get_tab_fields( 'notifications', array() ) ) ) {
$notifications_enabled = 1;
} else {
$notifications_enabled = 0;
$notifications_enabled = 0;
if ( false !== UM()->account()->is_notifications_tab_visible() ) {
$notifications_enabled = UM()->options()->get( 'account_tab_notifications' );
}
$um_account_settings = array(