WordPress.org

Make WordPress Core

Ticket #26661: widgets.php.patch

File widgets.php.patch, 692 bytes (added by westonruter, 6 years ago)
  • src/wp-admin/includes/widgets.php

     
    188188        $widget_title = esc_html( strip_tags( $sidebar_args['widget_name'] ) );
    189189        $has_form = 'noform';
    190190
     191        do_action( 'temp_wp_widget_control_before', $sidebar_args );
    191192        echo $sidebar_args['before_widget']; ?>
    192193        <div class="widget-top">
    193194        <div class="widget-title-action">
     
    237238        </div>
    238239<?php
    239240        echo $sidebar_args['after_widget'];
     241        do_action( 'temp_wp_widget_control_after', $sidebar_args, $has_form !== 'noform' );
    240242        return $sidebar_args;
    241243}