Skip to content

Commit

Permalink
Trigger additional widget setup actions (#22807)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored Jun 2, 2020
1 parent 9c4d9a5 commit 77fb18e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/widgets.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ function gutenberg_block_editor_admin_print_styles() {
*/
function gutenberg_block_editor_admin_print_scripts() {
if ( gutenberg_is_block_editor() ) {
/** This action is documented in wp-admin/includes/ajax-actions.php */
do_action( 'load-widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
/** This action is documented in wp-admin/includes/ajax-actions.php */
do_action( 'widgets.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
/** This action is documented in wp-admin/widgets.php */
do_action( 'sidebar_admin_setup' );
// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
do_action( 'admin_print_scripts-widgets.php' );
}
Expand Down

0 comments on commit 77fb18e

Please sign in to comment.