Changes in trunk/wp-admin/edit-pages.php [12162:12308]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-pages.php
r12162 r12308 142 142 <div class="wrap"> 143 143 <?php screen_icon(); ?> 144 <h2><?php echo esc_html( $title ); ?> <a href="page-new.php" class="button add-new-h2"><?php e sc_html_e('Add New'); ?></a> <?php144 <h2><?php echo esc_html( $title ); ?> <a href="page-new.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'page'); ?></a> <?php 145 145 if ( isset($_GET['s']) && $_GET['s'] ) 146 146 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( get_search_query() ) ); ?> … … 168 168 printf( _n( 'Page moved to the trash.', '%s pages moved to the trash.', $_GET['trashed'] ), number_format_i18n( $_GET['trashed'] ) ); 169 169 $ids = isset($_GET['ids']) ? $_GET['ids'] : 0; 170 echo ' <a href="' . esc_url( wp_nonce_url( "edit-pages.php?doaction=undo&action=untrash&ids=$ids", "bulk-pages" ) ) . '">' . __('Undo ?') . '</a><br />';170 echo ' <a href="' . esc_url( wp_nonce_url( "edit-pages.php?doaction=undo&action=untrash&ids=$ids", "bulk-pages" ) ) . '">' . __('Undo') . '</a><br />'; 171 171 unset($_GET['trashed']); 172 172 } … … 199 199 $class = ''; 200 200 201 if ( !in_array($status, $avail_post_stati) )201 if ( !in_array($status, $avail_post_stati) || $num_posts->$status <= 0 ) 202 202 continue; 203 203
Note: See TracChangeset
for help on using the changeset viewer.