From c100d28a25f87835e71a0983ef35c3999959978a Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 8 Oct 2013 20:27:08 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/widgets.php. Props r3df, kpdesign. Fixes #25501. Built from https://develop.svn.wordpress.org/trunk@25734 git-svn-id: http://core.svn.wordpress.org/trunk@25647 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/widgets.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/wp-admin/widgets.php b/wp-admin/widgets.php index 06b105ecc8..8c99b30eeb 100644 --- a/wp-admin/widgets.php +++ b/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 ) {