Making WordPress.org


Ignore:
Timestamp:
11/28/2024 03:44:30 AM (2 years ago)
Author:
adamwood
Message:

Learn: Sync with git WordPress/learn@0c673a9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2024/functions.php

    r14065 r14219  
    3030 * Actions and filters.
    3131 */
     32add_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\enqueue_admin_assets' );
    3233add_action( 'after_setup_theme', __NAMESPACE__ . '\setup' );
    3334add_action( 'sensei_quiz_question_inside_after', __NAMESPACE__ . '\sensei_question_add_closing_fieldset' );
    … …  
    114115        add_filter( 'mkaz_code_syntax_force_loading', '__return_true' );
    115116        add_filter( 'mkaz_prism_css_path', __NAMESPACE__ . '\update_prism_css_path' );
     117}
     118
     119/**
     120 * Enqueue scripts and styles.
     121 */
     122function enqueue_admin_assets() {
     123        $style_path = get_stylesheet_directory() . '/build/style/index.css';
     124        $style_uri = get_stylesheet_directory_uri() . '/build/style/index.css';
     125        wp_enqueue_style(
     126                'wporg-learn-2024-admin-style',
     127                $style_uri,
     128                array(),
     129                filemtime( $style_path )
     130        );
    116131}
    117132
Note: See TracChangeset for help on using the changeset viewer.