From 27352b4e866d1a20d393646ca7e14eb3638851ba Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 23 Dec 2013 00:44:33 +0000 Subject: [PATCH] Add temporary hooks for the widgets feature team to wp_widget_control(). props westonruter. see #26661. git-svn-id: https://develop.svn.wordpress.org/trunk@26865 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/widgets.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wp-admin/includes/widgets.php b/src/wp-admin/includes/widgets.php index c574f41f68..6890e3f397 100644 --- a/src/wp-admin/includes/widgets.php +++ b/src/wp-admin/includes/widgets.php @@ -188,6 +188,8 @@ function wp_widget_control( $sidebar_args ) { $widget_title = esc_html( strip_tags( $sidebar_args['widget_name'] ) ); $has_form = 'noform'; + do_action( 'temp_wp_widget_control_before', $sidebar_args ); + echo $sidebar_args['before_widget']; ?>
@@ -237,5 +239,8 @@ function wp_widget_control( $sidebar_args ) {