Changeset 14167 for trunk/wp-admin/edit.php
- Timestamp:
- 04/20/2010 02:54:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r14139 r14167 75 75 foreach( (array) $post_ids as $post_id ) { 76 76 if ( !current_user_can($post_type_object->delete_cap, $post_id) ) 77 wp_die( __('You are not allowed to move this item to the trash.') );77 wp_die( __('You are not allowed to move this item to the Trash.') ); 78 78 79 79 if ( !wp_trash_post($post_id) ) 80 wp_die( __('Error in moving to trash...') );80 wp_die( __('Error in moving to Trash.') ); 81 81 82 82 $trashed++; … … 88 88 foreach( (array) $post_ids as $post_id ) { 89 89 if ( !current_user_can($post_type_object->delete_cap, $post_id) ) 90 wp_die( __('You are not allowed to restore this item from the trash.') );90 wp_die( __('You are not allowed to restore this item from the Trash.') ); 91 91 92 92 if ( !wp_untrash_post($post_id) ) 93 wp_die( __('Error in restoring from trash...') );93 wp_die( __('Error in restoring from Trash.') ); 94 94 95 95 $untrashed++; … … 205 205 206 206 if ( isset($_GET['untrashed']) && (int) $_GET['untrashed'] ) { 207 printf( _n( 'Item restored from the trash.', '%s items restored from the trash.', $_GET['untrashed'] ), number_format_i18n( $_GET['untrashed'] ) );207 printf( _n( 'Item restored from the Trash.', '%s items restored from the Trash.', $_GET['untrashed'] ), number_format_i18n( $_GET['untrashed'] ) ); 208 208 unset($_GET['undeleted']); 209 209 } … … 263 263 264 264 <p class="search-box"> 265 <label class="screen-reader-text" for="post-search-input"><?php printf( _ _( 'Search %s'), $post_type_object->label ); ?>:</label>265 <label class="screen-reader-text" for="post-search-input"><?php printf( _x('Search %s', '%s: post type name'), $post_type_object->label ); ?>:</label> 266 266 <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" /> 267 <input type="submit" value="<?php echo esc_attr( sprintf( _ _( 'Search %s'), $post_type_object->label ) ); ?>" class="button" />267 <input type="submit" value="<?php echo esc_attr( sprintf( _x('Search %s', '%s: post type name'), $post_type_object->label ) ); ?>" class="button" /> 268 268 </p> 269 269
Note: See TracChangeset
for help on using the changeset viewer.