- 3043631715D6345B415AA169554043AEEFF92A92B95D9445AAA69C6AF0636C1FF00CD3535B1BB04086F9D92D682B3FCA847E89B466B5FB9F24CD2E6DBE606E5F+ 68788DD60A72A71D72917FF53EF5A63F7AD1299BDC51F69EA3401682FE52E0D90D0ABAB0DA899191AF007F92D049F5006424C54EEAFBAFD57BD0634B4BE7B94Amp-wp/wp-admin/edit-pages.php(10 . 12)(10 . 12)
9376 require_once('admin.php');
9377
9378 // Handle bulk actions
9379 if ( isset($_GET['action']) && ( -1 != $_GET['action'] || -1 != $_GET['action2'] ) ) {
9380 $doaction = ( -1 != $_GET['action'] ) ? $_GET['action'] : $_GET['action2'];
9381 if ( isset($_GET['action']) && -1 != $_GET['action'] ) {
9382 $doaction = $_GET['action'];
9383
9384 switch ( $doaction ) {
9385 case 'delete':
9386 if ( isset($_GET['post']) && ! isset($_GET['bulk_edit']) && (isset($_GET['doaction']) || isset($_GET['doaction2'])) ) {
9387 if ( isset($_GET['post']) && ! isset($_GET['bulk_edit']) && isset($_GET['doaction']) ) {
9388 check_admin_referer('bulk-pages');
9389 $deleted = 0;
9390 foreach( (array) $_GET['post'] as $post_id_del ) {
(72 . 7)(72 . 6)
9392 if ( empty($title) )
9393 $title = __('Edit Pages');
9394 $parent_file = 'edit-pages.php';
9395 wp_enqueue_script('inline-edit-post');
9396
9397 $post_stati = array( // array( adj, noun )
9398 'publish' => array(__('Published|page'), __('Published pages'), _n_noop('Published <span class="count">(%s)</span>|page', 'Published <span class="count">(%s)</span>')),
(95 . 11)(94 . 6)
9400 $query = apply_filters('manage_pages_query', $query);
9401 wp($query);
9402
9403 if ( is_singular() ) {
9404 wp_enqueue_script( 'admin-comments' );
9405 enqueue_comment_hotkeys_js();
9406 }
9407
9408 require_once('admin-header.php'); ?>
9409
9410 <div class="wrap">
(199 . 19)(193 . 18)
9412 'current' => $pagenum
9413 ));
9414
9415 if ( $page_links ) : ?>
9416 if ( $page_links ) { ?>
9417 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s',
9418 number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ),
9419 number_format_i18n( min( $pagenum * $per_page, $wp_query->post_count ) ),
9420 number_format_i18n( $wp_query->post_count ),
9421 $page_links
9422 ); echo $page_links_text; ?></div>
9423 <?php endif; ?>
9424 <?php } ?>
9425
9426 <div class="alignleft actions">
9427 <select name="action">
9428 <option value="-1" selected="selected"><?php _e('Bulk Actions'); ?></option>
9429 <option value="edit"><?php _e('Edit'); ?></option>
9430 <option value="delete"><?php _e('Delete'); ?></option>
9431 </select>
9432 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
(229 . 36)(222 . 11)
9434 <?php print_column_headers('edit-pages'); ?>
9435 </tr>
9436 </thead>
9437
9438 <tfoot>
9439 <tr>
9440 <?php print_column_headers('edit-pages', false); ?>
9441 </tr>
9442 </tfoot>
9443
9444 <tbody>
9445 <?php page_rows($posts, $pagenum, $per_page); ?>
9446 </tbody>
9447 </table>
9448
9449 <div class="tablenav">
9450 <?php
9451 if ( $page_links )
9452 echo "<div class='tablenav-pages'>$page_links_text</div>";
9453 ?>
9454
9455 <div class="alignleft actions">
9456 <select name="action2">
9457 <option value="-1" selected="selected"><?php _e('Bulk Actions'); ?></option>
9458 <option value="edit"><?php _e('Edit'); ?></option>
9459 <option value="delete"><?php _e('Delete'); ?></option>
9460 </select>
9461 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
9462 </div>
9463
9464 <br class="clear" />
9465 </div>
9466
9467 <?php } else { ?>
9468 <div class="clear"></div>
9469 <p><?php _e('No pages found.') ?></p>
(266 . 12)(234 . 18)
9471 } // end if ($posts)
9472 ?>
9473
9474 </form>
9475
9476 <?php inline_edit_row( 'page' ) ?>
9477
9478 <div id="ajax-response"></div>
9479 <?php if ( $page_links ) { ?>
9480 <div class="tablenav">
9481 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s',
9482 number_format_i18n( ( $pagenum - 1 ) * $per_page + 1 ),
9483 number_format_i18n( min( $pagenum * $per_page, $wp_query->post_count ) ),
9484 number_format_i18n( $wp_query->post_count ),
9485 $page_links
9486 ); echo $page_links_text; ?></div>
9487 </div>
9488 <?php } ?>
9489
9490 </form>
9491
9492 <?php
9493
(312 . 20)(286 . 4)
9495
9496 </div>
9497
9498 <script type="text/javascript">
9499 /* <![CDATA[ */
9500 (function($){
9501 $(document).ready(function(){
9502 $('#doaction, #doaction2').click(function(){
9503 if ( $('select[name^="action"]').val() == 'delete' ) {
9504 var m = '<?php echo js_escape(__("You are about to delete the selected pages.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
9505 return showNotice.warn(m);
9506 }
9507 });
9508 });
9509 })(jQuery);
9510 columns.init('edit-pages');
9511 /* ]]> */
9512 </script>
9513
9514 <?php include('admin-footer.php'); ?>