WordPress.org

Make WordPress Core

Changeset 26865


Ignore:
Timestamp:
12/23/2013 12:44:33 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Add temporary hooks for the widgets feature team to wp_widget_control().

props westonruter.
see #26661.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/widgets.php

    r26608 r26865  
    189189    $has_form = 'noform';
    190190
     191    do_action( 'temp_wp_widget_control_before', $sidebar_args );
     192
    191193    echo $sidebar_args['before_widget']; ?>
    192194    <div class="widget-top">
     
    238240<?php
    239241    echo $sidebar_args['after_widget'];
     242
     243    do_action( 'temp_wp_widget_control_after', $sidebar_args, 'noform' !== $has_form );
     244
    240245    return $sidebar_args;
    241246}
Note: See TracChangeset for help on using the changeset viewer.