Changes in trunk/wp-admin/widgets.php [15132:16438]
- File:
-
- 1 edited
-
trunk/wp-admin/widgets.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/widgets.php
r15132 r16438 36 36 $help = ' 37 37 <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> 38 <p>' . __(' 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>38 <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> 39 39 <p>' . __('If you want to remove the widget but save its setting for possible future use, just drag it into the Inactive Widgets area. You can add them back anytime from there. This is especially helpful when you switch to a theme with fewer or different widget areas.') . '</p> 40 40 <p>' . __('Widgets may be used multiple times. You can give each widget a title, to display on your site, but it’s not required.') . '</p> … … 43 43 '; 44 44 $help .= '<p><strong>' . __('For more information:') . '</strong></p>'; 45 $help .= '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Widgets_SubPanel" target="_blank"> Widgets Documentation</a>') . '</p>';45 $help .= '<p>' . __('<a href="http://codex.wordpress.org/Appearance_Widgets_SubPanel" target="_blank">Documentation on Widgets</a>') . '</p>'; 46 46 $help .= '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'; 47 47 add_contextual_help($current_screen, $help); … … 176 176 177 177 if ( !in_array($widget_id, $sidebar, true) ) { 178 wp_redirect( 'widgets.php?error=0');178 wp_redirect( admin_url('widgets.php?error=0') ); 179 179 exit; 180 180 } … … 209 209 210 210 wp_set_sidebars_widgets($sidebars_widgets); 211 wp_redirect( 'widgets.php?message=0');211 wp_redirect( admin_url('widgets.php?message=0') ); 212 212 exit; 213 213 } … … 307 307 308 308 <div class="widget-control-actions"> 309 <?php if ( isset($_GET['addnew']) ) { ?> 309 <?php 310 if ( isset($_GET['addnew']) ) { ?> 310 311 <a href="widgets.php" class="button alignleft"><?php _e('Cancel'); ?></a> 311 <?php } else { ?> 312 <input type="submit" name="removewidget" class="button alignleft" value="<?php esc_attr_e('Delete'); ?>" /> 313 <?php } ?> 314 <input type="submit" name="savewidget" class="button-primary alignright" value="<?php esc_attr_e('Save Widget'); ?>" /> 312 <?php 313 } else { 314 submit_button( __( 'Delete' ), 'button alignleft', 'removewidget', false ); 315 } 316 submit_button( __( 'Save Widget' ), 'button-primary alignright', 'savewidget', false ); ?> 315 317 <input type="hidden" name="widget-id" class="widget-id" value="<?php echo esc_attr($widget_id); ?>" /> 316 318 <input type="hidden" name="id_base" class="id_base" value="<?php echo esc_attr($id_base); ?>" />
Note: See TracChangeset
for help on using the changeset viewer.