Changeset 51214 for trunk/src/wp-includes/widgets.php
- Timestamp:
- 06/23/2021 01:07:27 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.