diff --git a/theme/functions.php b/theme/functions.php index e89f560..cbac8d0 100644 --- a/theme/functions.php +++ b/theme/functions.php @@ -242,6 +242,7 @@ function wowpress_enqueue_block_editor_script() 'wp-blocks', 'wp-edit-post', ), + WOWPRESS_VERSION, true ); @@ -295,7 +296,6 @@ require get_template_directory() . '/inc/template-tags.php'; require get_template_directory() . '/inc/template-functions.php'; require get_template_directory() . '/inc/config-functions.php'; require get_template_directory() . '/plugins/wowpress-navwalker.php'; -require get_template_directory() . '/plugins/wowpress-icons.php'; /** * Hide Admin Bar @@ -470,4 +470,12 @@ function wowpress_add_category_meta($taxonomy) /** Avatar Filters */ add_filter('get_avatar_url', '\WoWPress\Models\User::getAvatar', 10, 3); - add_filter('asgarosforum_filter_username', '\WoWPress\Models\User::getUsername', 10, 2); \ No newline at end of file + add_filter('asgarosforum_filter_username', '\WoWPress\Models\User::getUsername', 10, 2); + + /** Login redirect */ + add_filter('login_redirect', fn() => "/"); + + function sanitize($word){ + $char = new Character(); + return $char->sanitize($word); + } \ No newline at end of file diff --git a/theme/header.php b/theme/header.php index dd4a33d..be72d9a 100644 --- a/theme/header.php +++ b/theme/header.php @@ -33,17 +33,20 @@ global $user; >