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
This commit is contained in:
parent
5cb2ad494e
commit
27352b4e86
@ -188,6 +188,8 @@ function wp_widget_control( $sidebar_args ) {
|
|||||||
$widget_title = esc_html( strip_tags( $sidebar_args['widget_name'] ) );
|
$widget_title = esc_html( strip_tags( $sidebar_args['widget_name'] ) );
|
||||||
$has_form = 'noform';
|
$has_form = 'noform';
|
||||||
|
|
||||||
|
do_action( 'temp_wp_widget_control_before', $sidebar_args );
|
||||||
|
|
||||||
echo $sidebar_args['before_widget']; ?>
|
echo $sidebar_args['before_widget']; ?>
|
||||||
<div class="widget-top">
|
<div class="widget-top">
|
||||||
<div class="widget-title-action">
|
<div class="widget-title-action">
|
||||||
@ -237,5 +239,8 @@ function wp_widget_control( $sidebar_args ) {
|
|||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
echo $sidebar_args['after_widget'];
|
echo $sidebar_args['after_widget'];
|
||||||
|
|
||||||
|
do_action( 'temp_wp_widget_control_after', $sidebar_args, 'noform' !== $has_form );
|
||||||
|
|
||||||
return $sidebar_args;
|
return $sidebar_args;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user