Make WordPress Core

Ticket #25501: widgets.php.patch

File widgets.php.patch, 1.5 KB (added by r3df, 13 years ago)

Revised Patch

  • widgets.php

     
    3434                wp_enqueue_script( 'jquery-touch-punch' );
    3535}
    3636
     37/**
     38 * Fires early when editing the widgets displayed in sidebars.
     39 *
     40 * This action is triggered after widgets are set up (globals
     41 * $wp_registered_widgets and $wp_registered_widget_controls are defined) but
     42 * before other actions on the widgets are taken.
     43 *
     44 * @since 2.2.0
     45 */
    3746do_action( 'sidebar_admin_setup' );
    3847
    3948$title = __( 'Widgets' );
     
    315324<div id="message" class="error"><p><?php echo $errors[$_GET['error']]; ?></p></div>
    316325<?php } ?>
    317326
    318 <?php do_action( 'widgets_admin_page' ); ?>
     327<?php
     328/**
     329 * Fires after title, but before main content.
     330 *
     331 * Triggered on the widget admin page before the main content (available widgets
     332 * & sidebars) has loaded. Hook this action to display content on the widget
     333 * admin page before the main content.
     334 *
     335 * @since 3.0.0
     336 */
     337do_action( 'widgets_admin_page' ); ?>
    319338
    320339<div class="widget-liquid-left">
    321340<div id="widgets-left">
     
    396415</div>
    397416
    398417<?php
     418
     419/**
     420 * Fires after main content is processed.
     421 *
     422 * Triggered on the widget admin page after the main content (available widgets
     423 * & sidebars) has loaded.  Hook this action to display content on the widget
     424 * admin page as part of the main content.
     425 *
     426 * @since 2.2.0
     427 */
    399428do_action( 'sidebar_admin_page' );
    400429require_once( ABSPATH . 'wp-admin/admin-footer.php' );