Ticket #30549: remove_delete_widgets.patch
| File remove_delete_widgets.patch, 2.5 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/includes/widgets.php
223 223 224 224 <div class="widget-control-actions"> 225 225 <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> | 227 227 <a class="widget-control-close" href="#close"><?php _e('Close'); ?></a> 228 228 </div> 229 229 <div class="alignright<?php if ( 'noform' === $has_form ) echo ' widget-control-noform'; ?>"> -
src/wp-admin/widgets.php
50 50 'title' => __('Overview'), 51 51 'content' => 52 52 '<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>' 54 54 ) ); 55 55 get_current_screen()->add_help_tab( array( 56 56 'id' => 'removing-reusing', … … 281 281 <a href="widgets.php" class="button alignleft"><?php _e('Cancel'); ?></a> 282 282 <?php 283 283 } else { 284 submit_button( __( ' Delete' ), 'button alignleft', 'removewidget', false );284 submit_button( __( 'Remove' ), 'button alignleft', 'removewidget', false ); 285 285 } 286 286 submit_button( __( 'Save Widget' ), 'button-primary alignright', 'savewidget', false ); ?> 287 287 <input type="hidden" name="widget-id" class="widget-id" value="<?php echo esc_attr($widget_id); ?>" />