From 274d4b76fae87a0801a277e4ec7b5f731008e8f5 Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Thu, 8 Feb 2024 20:57:39 +0100 Subject: [PATCH] Make fonts available in admin --- DEVELOPMENT.md | 2 +- fonts/open-sans/font.css | 1 - includes/functions/_theme_setup.php | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 214329f3..4a5c0d94 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -220,7 +220,7 @@ Fictioneer customizes WordPress by using as many standard action and filter hook | `admin_enqueue_scripts` | `fictioneer_admin_scripts`, `fictioneer_admin_styles`, `fictioneer_disable_moderator_comment_edit`, `fictioneer_hide_private_data` | `admin_footer-post.php` | `fictioneer_classic_editor_js_restrictions`, `fictioneer_hide_permalink_with_js` | `admin_footer-post-new.php` | `fictioneer_classic_editor_js_restrictions` -| `admin_head` | `fictioneer_remove_update_notice`, `fictioneer_hide_epub_inputs`, `fictioneer_hide_story_sticky_checkbox` +| `admin_head` | `fictioneer_remove_update_notice`, `fictioneer_hide_epub_inputs`, `fictioneer_hide_story_sticky_checkbox`, `fictioneer_output_head_fonts` | `admin_head-post.php` | `fictioneer_hide_permalink_with_css`, `fictioneer_classic_editor_css_restrictions` | `admin_head-post-new.php` | `fictioneer_classic_editor_css_restrictions` | `admin_head-profile.php` | `fictioneer_remove_profile_blocks` diff --git a/fonts/open-sans/font.css b/fonts/open-sans/font.css index ed538942..e69de29b 100644 --- a/fonts/open-sans/font.css +++ b/fonts/open-sans/font.css @@ -1 +0,0 @@ -/* stub */ diff --git a/includes/functions/_theme_setup.php b/includes/functions/_theme_setup.php index 0cc3ebb5..9e59508e 100644 --- a/includes/functions/_theme_setup.php +++ b/includes/functions/_theme_setup.php @@ -1128,6 +1128,7 @@ function fictioneer_output_head_fonts() { } } add_action( 'wp_head', 'fictioneer_output_head_fonts', 5 ); +add_action( 'admin_head', 'fictioneer_output_head_fonts', 5 ); // ============================================================================= // MODIFY ROBOTS META