diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 8c21cadb..c884f5dd 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -248,7 +248,7 @@ Fictioneer customizes WordPress by using as many standard action and filter hook | `wp_dashboard_setup` | `fictioneer_remove_dashboard_widgets` | `wp_default_scripts` | `fictioneer_remove_jquery_migrate` | `wp_enqueue_scripts` | `fictioneer_add_custom_scripts`, `fictioneer_customizer_queue`, `fictioneer_style_queue` -| `wp_head` | `fictioneer_output_head_seo`, `fictioneer_output_rss`, `fictioneer_output_schemas`, `fictioneer_add_fiction_css`, `fictioneer_output_head_fonts`, `fictioneer_output_head_translations`, `fictioneer_remove_mu_registration_styles`, `fictioneer_output_mu_registration_style` +| `wp_head` | `fictioneer_output_head_seo`, `fictioneer_output_rss`, `fictioneer_output_schemas`, `fictioneer_add_fiction_css`, `fictioneer_output_head_fonts`, `fictioneer_output_head_translations`, `fictioneer_remove_mu_registration_styles`, `fictioneer_output_mu_registration_style`, `fictioneer_output_head_meta`, `fictioneer_output_head_critical_scripts` | `wp_update_nav_menu` | `fictioneer_purge_nav_menu_transients`
diff --git a/header.php b/header.php index d192c939..fed8c347 100644 --- a/header.php +++ b/header.php @@ -26,9 +26,9 @@ if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { $fictioneer_render_start_time = microtime( true ); } +// IDs global $post; -// IDs $page_id = get_queried_object_id(); $post_id = $post ? $post->ID : null; @@ -51,19 +51,7 @@ if ( ( $args['no_index'] ?? 0 ) || FICTIONEER_MU_REGISTRATION ) { > - - hook - wp_head(); - - // Includes critical path scripts that must be executed before the rest - fictioneer_output_head_critical_scripts(); - ?> - + data-post-id=""> diff --git a/includes/functions/_setup-theme.php b/includes/functions/_setup-theme.php index 6b3b6eb6..2bc8d924 100644 --- a/includes/functions/_setup-theme.php +++ b/includes/functions/_setup-theme.php @@ -1281,24 +1281,24 @@ if ( ! function_exists( 'fictioneer_output_critical_fonts' ) ) { // OUTPUT HEAD META // ============================================================================= -if ( ! function_exists( 'fictioneer_output_head_meta' ) ) { - /** - * Output HTML meta - * - * @since 5.0.0 - * @since 5.10.0 - Split up for font manager. - */ +/** + * Output HTML meta + * + * @since 5.0.0 + * @since 5.10.0 - Split up for font manager. + * @since 5.18.1 - No longer pluggable, hooked into wp_head + */ - function fictioneer_output_head_meta() { - // Start HTML ---> ?> - - - - - - ?> + + + + + + - * - * Critical path scripts executed in the before the rest of the DOM - * is loaded. This is necessary for the light/dark switch and site settings - * to work without causing color flickering or layout shifts. This is achieved - * by adding configuration classes directly into the root node, which - * is the only one available at this point. - * - * @since 5.0.0 - */ +/** + * Output critical path scripts in + * + * Critical path scripts executed in the before the rest of the DOM + * is loaded. This is necessary for the light/dark switch and site settings + * to work without causing color flickering or layout shifts. This is achieved + * by adding configuration classes directly into the root node, which + * is the only one available at this point. + * + * @since 5.0.0 + * @since 5.18.1 - No longer pluggable, hooked into wp_head + */ - function fictioneer_output_head_critical_scripts() { - // Start HTML ---> ?> - - ?> + +