Changeset 11652 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/functions.php
- Timestamp:
- 03/08/2022 09:04:30 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/functions.php
r11451 r11652 5 5 use const WordPressdotorg\Pattern_Directory\Pattern_Post_Type\POST_TYPE; 6 6 use const WordPressdotorg\Pattern_Directory\Pattern_Flag_Post_Type\POST_TYPE as FLAG_POST_TYPE; 7 8 require_once __DIR__ . '/includes/inline-styles.php'; 7 9 8 10 add_action( 'after_setup_theme', __NAMESPACE__ . '\setup' ); … … 27 29 */ 28 30 function setup() { 29 add_theme_support( 'post-thumbnails' );30 31 31 // Add gutenberg styling supports. 32 32 add_theme_support( 'align-wide' ); 33 add_theme_support( 'custom-spacing' );34 add_theme_support( 'custom-line-height' );35 add_theme_support( 'experimental-link-color' );36 33 37 34 // The parent wporg theme is designed for use on wordpress.org/* and assumes locale-domains are available. … … 116 113 */ 117 114 function generate_block_editor_styles_html() { 118 $handles = array( 'wp-block-library' ); 115 wp_enqueue_global_styles(); 116 $handles = array( 'wp-block-library', 'global-styles' ); 119 117 120 118 $block_registry = \WP_Block_Type_Registry::get_instance(); … … 147 145 'before' 148 146 ); 147 148 wp_dequeue_style( 'global-styles' ); 149 wp_deregister_style( 'global-styles' ); 149 150 } 150 151
Note: See TracChangeset
for help on using the changeset viewer.