WordPress.org

Make WordPress Core

Ticket #30549: remove_delete_widgets.patch

File remove_delete_widgets.patch, 2.5 KB (added by pavelevap, 7 years ago)
  • src/wp-admin/includes/widgets.php

     
    223223
    224224        <div class="widget-control-actions">
    225225                <div class="alignleft">
    226                 <a class="widget-control-remove" href="#remove"><?php _e('Delete'); ?></a> |
     226                <a class="widget-control-remove" href="#remove"><?php _e( 'Remove' ); ?></a> |
    227227                <a class="widget-control-close" href="#close"><?php _e('Close'); ?></a>
    228228                </div>
    229229                <div class="alignright<?php if ( 'noform' === $has_form ) echo ' widget-control-noform'; ?>">
  • src/wp-admin/widgets.php

     
    5050'title'         => __('Overview'),
    5151'content'       =>
    5252        '<p>' . __('Widgets are independent sections of content that can be placed into any widgetized area provided by your theme (commonly called sidebars). To populate your sidebars/widget areas with individual widgets, drag and drop the title bars into the desired area. By default, only the first widget area is expanded. To populate additional widget areas, click on their title bars to expand them.') . '</p>
    53         <p>' . __('The Available Widgets section contains all the widgets you can choose from. Once you drag a widget into a sidebar, it will open to allow you to configure its settings. When you are happy with the widget settings, click the Save button and the widget will go live on your site. If you click Delete, it will remove the widget.') . '</p>'
     53        <p>' . __('The Available Widgets section contains all the widgets you can choose from. Once you drag a widget into a sidebar, it will open to allow you to configure its settings. When you are happy with the widget settings, click the Save button and the widget will go live on your site. If you click Remove, it will remove the widget.') . '</p>'
    5454) );
    5555get_current_screen()->add_help_tab( array(
    5656'id'            => 'removing-reusing',
     
    281281        <a href="widgets.php" class="button alignleft"><?php _e('Cancel'); ?></a>
    282282<?php
    283283        } else {
    284                 submit_button( __( 'Delete' ), 'button alignleft', 'removewidget', false );
     284                submit_button( __( 'Remove' ), 'button alignleft', 'removewidget', false );
    285285        }
    286286        submit_button( __( 'Save Widget' ), 'button-primary alignright', 'savewidget', false ); ?>
    287287        <input type="hidden" name="widget-id" class="widget-id" value="<?php echo esc_attr($widget_id); ?>" />