The sidebar_admin_setup
hook should only be documented once in wp-admin/widgets.php. All others are duplicates.
See #25374, #25501, #27531. git-svn-id: https://develop.svn.wordpress.org/trunk@27823 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5857c18dd8
commit
a2d810d024
@ -1523,11 +1523,7 @@ function wp_ajax_save_widget() {
|
|||||||
*/
|
*/
|
||||||
do_action( 'widgets.php' );
|
do_action( 'widgets.php' );
|
||||||
|
|
||||||
/**
|
/** This action is documented in wp-admin/widgets.php */
|
||||||
* Fires early when editing the widgets displayed in sidebars.
|
|
||||||
*
|
|
||||||
* @since 2.2.0
|
|
||||||
*/
|
|
||||||
do_action( 'sidebar_admin_setup' );
|
do_action( 'sidebar_admin_setup' );
|
||||||
|
|
||||||
$id_base = $_POST['id_base'];
|
$id_base = $_POST['id_base'];
|
||||||
|
@ -35,7 +35,8 @@ if ( 'on' == $widgets_access ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fires early before the Widgets administration screen loads, after scripts are enqueued.
|
* Fires early before the Widgets administration screen loads,
|
||||||
|
* after scripts are enqueued.
|
||||||
*
|
*
|
||||||
* @since 2.2.0
|
* @since 2.2.0
|
||||||
*/
|
*/
|
||||||
|
@ -281,6 +281,8 @@ final class WP_Customize_Widgets {
|
|||||||
public function customize_controls_init() {
|
public function customize_controls_init() {
|
||||||
do_action( 'load-widgets.php' );
|
do_action( 'load-widgets.php' );
|
||||||
do_action( 'widgets.php' );
|
do_action( 'widgets.php' );
|
||||||
|
|
||||||
|
/** This action is documented in wp-admin/widgets.php */
|
||||||
do_action( 'sidebar_admin_setup' );
|
do_action( 'sidebar_admin_setup' );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1158,6 +1160,8 @@ final class WP_Customize_Widgets {
|
|||||||
|
|
||||||
do_action( 'load-widgets.php' );
|
do_action( 'load-widgets.php' );
|
||||||
do_action( 'widgets.php' );
|
do_action( 'widgets.php' );
|
||||||
|
|
||||||
|
/** This action is documented in wp-admin/widgets.php */
|
||||||
do_action( 'sidebar_admin_setup' );
|
do_action( 'sidebar_admin_setup' );
|
||||||
|
|
||||||
$widget_id = $this->get_post_value( 'widget-id' );
|
$widget_id = $this->get_post_value( 'widget-id' );
|
||||||
|
Loading…
Reference in New Issue
Block a user