- 33B630D56D8EF054599A2EF450859BBD36B1CABA90DD826083B41131D07EE28533F3EEEFEE4AB484978B1CED2933F844FBDC388DCAE47211DCBFC28896F9B89E+ 4CD34FF77CDD98E7806A4BB04D07C6CF7D6BE1D85E7792D6AFBBD91D134D54AC17E0A10B32C74F58E6F9DD9D3D0E26F9FB284F7038C9B2313F2D0C3D1E13C362mp-wp/wp-admin/edit.php(18 . 12)(18 . 12)
9643 }
9644
9645 // Handle bulk actions
9646 if ( isset($_GET['action']) && ( -1 != $_GET['action'] || -1 != $_GET['action2'] ) ) {
9647 $doaction = ( -1 != $_GET['action'] ) ? $_GET['action'] : $_GET['action2'];
9648 if ( isset($_GET['action']) && -1 != $_GET['action'] ) {
9649 $doaction = $_GET['action'];
9650
9651 switch ( $doaction ) {
9652 case 'delete':
9653 if ( isset($_GET['post']) && ! isset($_GET['bulk_edit']) && (isset($_GET['doaction']) || isset($_GET['doaction2'])) ) {
9654 if ( isset($_GET['post']) && ! isset($_GET['bulk_edit']) && isset($_GET['doaction']) ) {
9655 check_admin_referer('bulk-posts');
9656 $deleted = 0;
9657 foreach( (array) $_GET['post'] as $post_id_del ) {
(80 . 7)(80 . 6)
9659 if ( empty($title) )
9660 $title = __('Edit Posts');
9661 $parent_file = 'edit.php';
9662 wp_enqueue_script('inline-edit-post');
9663
9664 list($post_stati, $avail_post_stati) = wp_edit_posts_query();
9665
(192 . 7)(191 . 6)
9667 <div class="alignleft actions">
9668 <select name="action">
9669 <option value="-1" selected="selected"><?php _e('Bulk Actions'); ?></option>
9670 <option value="edit"><?php _e('Edit'); ?></option>
9671 <option value="delete"><?php _e('Delete'); ?></option>
9672 </select>
9673 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
(250 . 9)(248 . 12)
9675 ); echo $page_links_text; ?></div>
9676 <?php } ?>
9677
9678 <div class="view-switch">
9679 <a href="<?php echo clean_url(add_query_arg('mode', 'list', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'list' == $mode ) echo 'class="current"'; ?> id="view-switch-list" src="../wp-includes/images/blank.svg" width="20" height="20" title="<?php _e('List View') ?>" alt="<?php _e('List View') ?>" /></a>
9680 <a href="<?php echo clean_url(add_query_arg('mode', 'excerpt', $_SERVER['REQUEST_URI'])) ?>"><img <?php if ( 'excerpt' == $mode ) echo 'class="current"'; ?> id="view-switch-excerpt" src="../wp-includes/images/blank.svg" width="20" height="20" title="<?php _e('Excerpt View') ?>" alt="<?php _e('Excerpt View') ?>" /></a>
9681 <div class="view-switch <?php if ($page_links) echo 'view-switch-with-border'; ?>">
9682 <?php if ( 'list' == $mode ) { ?>
9683 <a href="<?php echo clean_url(add_query_arg('mode', 'excerpt', $_SERVER['REQUEST_URI'])) ?>">show excerpts</a>
9684 <?php } else { ?>
9685 <a href="<?php echo clean_url(add_query_arg('mode', 'list', $_SERVER['REQUEST_URI'])) ?>">hide excerpts</a>
9686 <?php } ?>
9687 </div>
9688
9689 <div class="clear"></div>
(262 . 54)(263 . 26)
9691
9692 <?php include( 'edit-post-rows.php' ); ?>
9693
9694 <div class="tablenav">
9695
9696 <?php
9697 if ( $page_links )
9698 echo "<div class='tablenav-pages'>$page_links_text</div>";
9699 ?>
9700
9701 <div class="alignleft actions">
9702 <select name="action2">
9703 <option value="-1" selected="selected"><?php _e('Bulk Actions'); ?></option>
9704 <option value="edit"><?php _e('Edit'); ?></option>
9705 <option value="delete"><?php _e('Delete'); ?></option>
9706 </select>
9707 <input type="submit" value="<?php _e('Apply'); ?>" name="doaction2" id="doaction2" class="button-secondary action" />
9708 <br class="clear" />
9709 </div>
9710 <br class="clear" />
9711 </div>
9712
9713 <?php } else { // have_posts() ?>
9714 <div class="clear"></div>
9715 <p><?php _e('No posts found') ?></p>
9716 <?php } ?>
9717
9718 </form>
9719
9720 <?php inline_edit_row( 'post' ); ?>
9721 <?php if ( $page_links ) { ?>
9722 <div class="tablenav">
9723 <div class="tablenav-pages"><?php $page_links_text = sprintf( '<span class="displaying-num">' . __( 'Displaying %s–%s of %s' ) . '</span>%s',
9724 number_format_i18n( ( $_GET['paged'] - 1 ) * $wp_query->query_vars['posts_per_page'] + 1 ),
9725 number_format_i18n( min( $_GET['paged'] * $wp_query->query_vars['posts_per_page'], $wp_query->found_posts ) ),
9726 number_format_i18n( $wp_query->found_posts ),
9727 $page_links
9728 ); echo $page_links_text; ?></div>
9729 </div>
9730 <?php } ?>
9731
9732 <div id="ajax-response"></div>
9733 </form>
9734
9735 <br class="clear" />
9736
9737 </div>
9738
9739 <script type="text/javascript">
9740 /* <![CDATA[ */
9741 (function($){
9742 $(document).ready(function(){
9743 $('#doaction, #doaction2').click(function(){
9744 if ( $('select[name^="action"]').val() == 'delete' ) {
9745 var m = '<?php echo js_escape(__("You are about to delete the selected posts.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
9746 return showNotice.warn(m);
9747 }
9748 });
9749 });
9750 })(jQuery);
9751 columns.init('edit');
9752 /* ]]> */
9753 </script>
9754
9755 <?php include('admin-footer.php'); ?>