Changeset 11779 for trunk/wp-admin/edit-pages.php
- Timestamp:
- 08/06/2009 12:40:39 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-pages.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-pages.php
r11763 r11779 169 169 } 170 170 if ( isset($_GET['untrashed']) && (int) $_GET['untrashed'] ) { 171 printf( _n( 'Page re moved from the trash.', '%s pages removed from the trash.', $_GET['untrashed'] ), number_format_i18n( $_GET['untrashed'] ) );171 printf( _n( 'Page restored from the trash.', '%s pages restored from the trash.', $_GET['untrashed'] ), number_format_i18n( $_GET['untrashed'] ) ); 172 172 unset($_GET['untrashed']); 173 173 } … … 240 240 )); 241 241 242 $is_trash = isset($_GET['post_status']) && $_GET['post_status'] == 'trash'; 243 242 244 if ( $page_links ) : ?> 243 245 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s', … … 252 254 <select name="action"> 253 255 <option value="-1" selected="selected"><?php _e('Bulk Actions'); ?></option> 254 <?php if ( $_GET['post_status'] == 'trash') { ?>256 <?php if ( $is_trash ) { ?> 255 257 <option value="untrash"><?php _e('Restore'); ?></option> 256 258 <option value="delete"><?php _e('Delete Permanently'); ?></option> … … 262 264 <input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" /> 263 265 <?php wp_nonce_field('bulk-pages'); ?> 264 <?php if ( $_GET['post_status'] == 'trash') { ?>266 <?php if ( $is_trash ) { ?> 265 267 <input type="submit" name="delete_all" id="delete_all" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" /> 266 268 <?php } ?> … … 299 301 <select name="action2"> 300 302 <option value="-1" selected="selected"><?php _e('Bulk Actions'); ?></option> 301 <?php if ( $_GET['post_status'] == 'trash') { ?>303 <?php if ( $is_trash ) { ?> 302 304 <option value="untrash"><?php _e('Restore'); ?></option> 303 305 <option value="delete"><?php _e('Delete Permanently'); ?></option> … … 308 310 </select> 309 311 <input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" /> 310 <?php if ( $_GET['post_status'] == 'trash') { ?>312 <?php if ( $is_trash ) { ?> 311 313 <input type="submit" name="delete_all2" id="delete_all2" value="<?php esc_attr_e('Empty Trash'); ?>" class="button-secondary apply" /> 312 314 <?php } ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)