Make WordPress Core

Ticket #25501: 25501.2.diff

File 25501.2.diff, 1.3 KB (added by kpdesign, 12 years ago)

Second pass on widgets.php.patch

  • src/wp-admin/widgets.php

     
    3434                wp_enqueue_script( 'jquery-touch-punch' );
    3535}
    3636
     37/**
     38 * Fires early when editing the widgets displayed in sidebars.
     39 *
     40 * Triggered after widgets are set up ($wp_registered_widgets and
     41 * $wp_registered_widget_controls are defined), but before other
     42 * 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 the title, but before available widgets and sidebars have loaded.
     330 *
     331 * Displays content on the widget admin page before the main page content.
     332 *
     333 * @since 3.0.0
     334 */
     335do_action( 'widgets_admin_page' ); ?>
    319336
    320337<div class="widget-liquid-left">
    321338<div id="widgets-left">
     
    396413</div>
    397414
    398415<?php
     416
     417/**
     418 * Fires after the available widgets and sidebars have loaded.
     419 *
     420 * Displays content on the widget admin page as part of the main page content.
     421 *
     422 * @since 2.2.0
     423 */
    399424do_action( 'sidebar_admin_page' );
    400425require_once( ABSPATH . 'wp-admin/admin-footer.php' );