From e46830eb0b512f593bc1fada87182c82c5017d5a Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 8 Oct 2013 20:26:25 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/widgets.php. Props r3df, kpdesign. Fixes #25501. git-svn-id: https://develop.svn.wordpress.org/trunk@25734 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/widgets.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/widgets.php b/src/wp-admin/widgets.php index 06b105ecc8..8c99b30eeb 100644 --- a/src/wp-admin/widgets.php +++ b/src/wp-admin/widgets.php @@ -34,6 +34,11 @@ if ( 'on' == $widgets_access ) { wp_enqueue_script( 'jquery-touch-punch' ); } +/** + * Fires early before the Widgets administration screen loads, after scripts are enqueued. + * + * @since 2.2.0 + */ do_action( 'sidebar_admin_setup' ); $title = __( 'Widgets' ); @@ -315,7 +320,13 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?>

- +
@@ -396,5 +407,11 @@ foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) {