Changeset 44137
- Timestamp:
- 12/14/2018 01:45:57 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43793
- Property svn:mergeinfo changed
-
trunk/src/wp-content/themes/twentyten/functions.php
r43571 r44137 76 76 // This theme styles the visual editor with editor-style.css to match the theme style. 77 77 add_editor_style(); 78 79 // Load regular editor styles into the new block-based editor. 80 add_theme_support( 'editor-styles' ); 81 82 // Load default block styles. 83 add_theme_support( 'wp-block-styles' ); 84 85 // Add support for custom color scheme. 86 add_theme_support( 87 'editor-color-palette', 88 array( 89 array( 90 'name' => __( 'Blue', 'twentyten' ), 91 'slug' => 'blue', 92 'color' => '#0066cc', 93 ), 94 array( 95 'name' => __( 'Black', 'twentyten' ), 96 'slug' => 'black', 97 'color' => '#000', 98 ), 99 array( 100 'name' => __( 'Medium Gray', 'twentyten' ), 101 'slug' => 'medium-gray', 102 'color' => '#666', 103 ), 104 array( 105 'name' => __( 'Light Gray', 'twentyten' ), 106 'slug' => 'light-gray', 107 'color' => '#f1f1f1', 108 ), 109 array( 110 'name' => __( 'White', 'twentyten' ), 111 'slug' => 'white', 112 'color' => '#fff', 113 ), 114 ) 115 ); 78 116 79 117 // Post Format support. You can also use the legacy "gallery" or "asides" (note the plural) categories. … … 656 694 } 657 695 add_filter( 'widget_tag_cloud_args', 'twentyten_widget_tag_cloud_args' ); 696 697 /** 698 * Enqueue scripts and styles for front end. 699 * 700 * @since Twenty Ten 2.6 701 */ 702 function twentyten_scripts_styles() { 703 // Theme block stylesheet. 704 wp_enqueue_style( 'twentyten-block-style', get_template_directory_uri() . '/blocks.css', array(), '20181018' ); 705 } 706 add_action( 'wp_enqueue_scripts', 'twentyten_scripts_styles' ); 707 708 /** 709 * Enqueue editor styles for Gutenberg 710 * 711 * @since Twenty Ten 2.6 712 */ 713 function twentyten_block_editor_styles() { 714 // Block styles. 715 wp_enqueue_style( 'twentyten-block-editor-style', get_template_directory_uri() . '/editor-blocks.css' ); 716 } 717 add_action( 'enqueue_block_editor_assets', 'twentyten_block_editor_styles' ); 718 719
Note: See TracChangeset
for help on using the changeset viewer.