Changeset 51214
- Timestamp:
- 06/23/2021 01:07:27 AM (3 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/default-filters.php
r51207 r51214 598 598 599 599 // Widgets. 600 add_action( 'after_setup_theme', 'wp_setup_widgets_block_editor', 1 ); 600 601 add_action( 'init', 'wp_widgets_init', 1 ); 601 602 -
trunk/src/wp-includes/theme.php
r51197 r51214 2480 2480 * @since 5.5.0 The `custom-logo` feature now also accepts 'unlink-homepage-logo'. 2481 2481 * @since 5.6.0 The `post-formats` feature warns if no array is passed. 2482 * @since 5.8.0 The `widgets-block-editor` enables the Widgets block editor. 2482 2483 * 2483 2484 * @global array $_wp_theme_features … … 2512 2513 * - 'wp-block-styles' 2513 2514 * - 'widgets' 2515 * - 'widgets-block-editor' 2514 2516 * @param mixed ...$args Optional extra arguments to pass along with certain features. 2515 2517 * @return void|false Void on success, false on failure. -
trunk/src/wp-includes/widgets.php
r51107 r51214 1802 1802 register_widget( 'WP_Widget_Block' ); 1803 1803 1804 add_theme_support( 'widgets-block-editor' );1805 1806 1804 /** 1807 1805 * Fires after all default WordPress widgets have been registered. … … 1810 1808 */ 1811 1809 do_action( 'widgets_init' ); 1810 } 1811 1812 /** 1813 * Enables the widgets block editor. This is hooked into 'after_setup_theme' so 1814 * that the block editor is enabled by default but can be disabled by themes. 1815 * 1816 * @since 5.8.0 1817 * 1818 * @access private 1819 */ 1820 function wp_setup_widgets_block_editor() { 1821 add_theme_support( 'widgets-block-editor' ); 1812 1822 } 1813 1823
Note: See TracChangeset
for help on using the changeset viewer.