Changeset 9998 for trunk/wp-admin/edit-pages.php
- Timestamp:
- 12/01/2008 06:02:16 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/edit-pages.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-pages.php
r9967 r9998 18 18 if ( isset($_GET['post']) && ! isset($_GET['bulk_edit']) && (isset($_GET['doaction']) || isset($_GET['doaction2'])) ) { 19 19 check_admin_referer('bulk-pages'); 20 $deleted = 0; 20 21 foreach( (array) $_GET['post'] as $post_id_del ) { 21 22 $post_del = & get_post($post_id_del); … … 31 32 wp_die( __('Error in deleting...') ); 32 33 } 34 $deleted++; 33 35 } 34 36 } … … 59 61 $sendback = add_query_arg( $done, $sendback ); 60 62 } 63 if ( isset($deleted) ) 64 $sendback = add_query_arg('deleted', $deleted, $sendback); 61 65 wp_redirect($sendback); 62 66 exit(); … … 103 107 <h2><?php echo wp_specialchars( $title ); ?></h2> 104 108 105 <?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) ) { ?>109 <?php if ( isset($_GET['locked']) || isset($_GET['skipped']) || isset($_GET['updated']) || isset($_GET['deleted']) ) { ?> 106 110 <div id="message" class="updated fade"><p> 107 <?php if ( (int) $_GET['updated'] ) {111 <?php if ( isset($_GET['updated']) && (int) $_GET['updated'] ) { 108 112 printf( __ngettext( '%s page updated.', '%s pages updated.', $_GET['updated'] ), number_format_i18n( $_GET['updated'] ) ); 109 113 unset($_GET['updated']); 110 114 } 111 115 112 if ( (int) $_GET['skipped'] ) {116 if ( isset($_GET['skipped']) && (int) $_GET['skipped'] ) { 113 117 printf( __ngettext( '%s page not updated, invalid parent page specified.', '%s pages not updated, invalid parent page specified.', $_GET['skipped'] ), number_format_i18n( $_GET['skipped'] ) ); 114 118 unset($_GET['skipped']); 115 119 } 116 120 117 if ( (int) $_GET['locked'] ) {121 if ( isset($_GET['locked']) && (int) $_GET['locked'] ) { 118 122 printf( __ngettext( '%s page not updated, somebody is editing it.', '%s pages not updated, somebody is editing them.', $_GET['locked'] ), number_format_i18n( $_GET['skipped'] ) ); 119 123 unset($_GET['locked']); 120 124 } 121 $_SERVER['REQUEST_URI'] = remove_query_arg( array('locked', 'skipped', 'updated'), $_SERVER['REQUEST_URI'] ); 125 126 if ( isset($_GET['deleted']) && (int) $_GET['deleted'] ) { 127 printf( __ngettext( 'Post deleted.', '%s posts deleted.', $_GET['deleted'] ), number_format_i18n( $_GET['deleted'] ) ); 128 unset($_GET['deleted']); 129 } 130 $_SERVER['REQUEST_URI'] = remove_query_arg( array('locked', 'skipped', 'updated', 'deleted'), $_SERVER['REQUEST_URI'] ); 122 131 ?> 123 132 </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)