Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r15132 r16438  
    3636$help = '
    3737    <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>
    3939    <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>
    4040    <p>' . __('Widgets may be used multiple times. You can give each widget a title, to display on your site, but it&#8217;s not required.') . '</p>
     
    4343';
    4444$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>';
    4646$help .= '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>';
    4747add_contextual_help($current_screen, $help);
     
    176176
    177177        if ( !in_array($widget_id, $sidebar, true) ) {
    178             wp_redirect('widgets.php?error=0');
     178            wp_redirect( admin_url('widgets.php?error=0') );
    179179            exit;
    180180        }
     
    209209
    210210    wp_set_sidebars_widgets($sidebars_widgets);
    211     wp_redirect('widgets.php?message=0');
     211    wp_redirect( admin_url('widgets.php?message=0') );
    212212    exit;
    213213}
     
    307307
    308308    <div class="widget-control-actions">
    309 <?php   if ( isset($_GET['addnew']) ) { ?>
     309<?php
     310    if ( isset($_GET['addnew']) ) { ?>
    310311    <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 ); ?>
    315317    <input type="hidden" name="widget-id" class="widget-id" value="<?php echo esc_attr($widget_id); ?>" />
    316318    <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.