Changeset 9998 for trunk/wp-admin/edit.php
- Timestamp:
- 12/01/2008 06:02:16 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit.php
r9914 r9998 26 26 if ( isset($_GET['post']) && ! isset($_GET['bulk_edit']) && (isset($_GET['doaction']) || isset($_GET['doaction2'])) ) { 27 27 check_admin_referer('bulk-posts'); 28 $deleted = 0; 28 29 foreach( (array) $_GET['post'] as $post_id_del ) { 29 30 $post_del = & get_post($post_id_del); … … 39 40 wp_die( __('Error in deleting...') ); 40 41 } 42 $deleted++; 41 43 } 42 44 } … … 67 69 $sendback = add_query_arg( $done, $sendback ); 68 70 } 71 if ( isset($deleted) ) 72 $sendback = add_query_arg('deleted', $deleted, $sendback); 69 73 wp_redirect($sendback); 70 74 exit(); … … 101 105 endif; ?> 102 106 103 <?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) ) { ?>107 <?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) ) { ?> 104 108 <div id="message" class="updated fade"><p> 105 <?php if ( (int) $_GET['updated'] ) {109 <?php if ( isset($_GET['updated']) && (int) $_GET['updated'] ) { 106 110 printf( __ngettext( '%s post updated.', '%s posts updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) ); 107 111 unset($_GET['updated']); 108 112 } 109 113 110 if ( (int) $_GET['skipped'] )114 if ( isset($_GET['skipped']) && (int) $_GET['skipped'] ) 111 115 unset($_GET['skipped']); 112 116 113 if ( (int) $_GET['locked'] ) {117 if ( isset($_GET['locked']) && (int) $_GET['locked'] ) { 114 118 printf( __ngettext( '%s post not updated, somebody is editing it.', '%s posts not updated, somebody is editing them.', $_GET['locked'] ), number_format_i18n( $_GET['locked'] ) ); 115 119 unset($_GET['locked']); 116 } 117 $_SERVER['REQUEST_URI'] = remove_query_arg( array('locked', 'skipped', 'updated'), $_SERVER['REQUEST_URI'] ); 120 } 121 122 if ( isset($_GET['deleted']) && (int) $_GET['deleted'] ) { 123 printf( __ngettext( 'Post deleted.', '%s posts deleted.', $_GET['deleted'] ), number_format_i18n( $_GET['deleted'] ) ); 124 unset($_GET['deleted']); 125 } 126 127 $_SERVER['REQUEST_URI'] = remove_query_arg( array('locked', 'skipped', 'updated', 'deleted'), $_SERVER['REQUEST_URI'] ); 118 128 ?> 119 129 </p></div>
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)