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
This commit is contained in:
parent
27ef389c26
commit
e46830eb0b
@ -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' ); ?>
|
||||
<div id="message" class="error"><p><?php echo $errors[$_GET['error']]; ?></p></div>
|
||||
<?php } ?>
|
||||
|
||||
<?php do_action( 'widgets_admin_page' ); ?>
|
||||
<?php
|
||||
/**
|
||||
* Fires before the Widgets administration page content loads.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*/
|
||||
do_action( 'widgets_admin_page' ); ?>
|
||||
|
||||
<div class="widget-liquid-left">
|
||||
<div id="widgets-left">
|
||||
@ -396,5 +407,11 @@ foreach ( $wp_registered_sidebars as $sidebar => $registered_sidebar ) {
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Fires after the available widgets and sidebars have loaded, before the admin footer.
|
||||
*
|
||||
* @since 2.2.0
|
||||
*/
|
||||
do_action( 'sidebar_admin_page' );
|
||||
require_once( ABSPATH . 'wp-admin/admin-footer.php' );
|
||||
|
Loading…
Reference in New Issue
Block a user