Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wp-bulk-.../includes/admin/posts
File: display-delete-posts.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Admin Delete Posts
[2] Fix | Delete
*
[3] Fix | Delete
* @package WP_Bulk_Delete
[4] Fix | Delete
* @subpackage Admin/Pages
[5] Fix | Delete
* @copyright Copyright (c) 2016, Dharmesh Patel
[6] Fix | Delete
* @since 1.0
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
// Exit if accessed directly
[10] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) exit;
[11] Fix | Delete
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* Delete Posts Page.
[15] Fix | Delete
*
[16] Fix | Delete
* Render the delete posts page contents.
[17] Fix | Delete
*
[18] Fix | Delete
* @since 1.0
[19] Fix | Delete
* @return void
[20] Fix | Delete
*/
[21] Fix | Delete
function wpbd_delete_posts_page(){
[22] Fix | Delete
?>
[23] Fix | Delete
<div class="wrap">
[24] Fix | Delete
<h2><?php esc_html_e('Delete Posts','wp-bulk-delete'); ?></h2>
[25] Fix | Delete
<?php
[26] Fix | Delete
// Set Default Tab to Cleanup
[27] Fix | Delete
$active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'cleanup';
[28] Fix | Delete
?>
[29] Fix | Delete
<div id="poststuff">
[30] Fix | Delete
<div id="post-body" class="metabox-holder columns-2">
[31] Fix | Delete
[32] Fix | Delete
<div class="notice notice-warning">
[33] Fix | Delete
<p><strong><?php _e( 'WARNING: Before you delete any post please first take Backup, any delete operation done is irreversible. Please use it with caution!', 'wp-bulk-delete' ); ?></strong></p>
[34] Fix | Delete
</div>
[35] Fix | Delete
<?php do_action( 'timeout_memory_is_enough'); ?>
[36] Fix | Delete
[37] Fix | Delete
<div class="delete_notice"></div>
[38] Fix | Delete
[39] Fix | Delete
<div id="postbox-container-1" class="postbox-container">
[40] Fix | Delete
<?php do_action('wpbd_admin_sidebar'); ?>
[41] Fix | Delete
</div>
[42] Fix | Delete
[43] Fix | Delete
<div id="postbox-container-2" class="postbox-container">
[44] Fix | Delete
[45] Fix | Delete
<h1 class="nav-tab-wrapper" style="padding-bottom: 0px">
[46] Fix | Delete
<a href="?page=delete_all_posts&tab=cleanup" class="nav-tab <?php echo $active_tab == 'cleanup' ? 'nav-tab-active' : ''; ?>">
[47] Fix | Delete
<?php esc_attr_e( 'Cleanup', 'wp-bulk-delete' ); ?>
[48] Fix | Delete
</a>
[49] Fix | Delete
<a href="?page=delete_all_posts&tab=by_posttype" class="nav-tab <?php echo $active_tab == 'by_posttype' ? 'nav-tab-active' : ''; ?>">
[50] Fix | Delete
<?php esc_attr_e( 'By Posttype', 'wp-bulk-delete' ); ?>
[51] Fix | Delete
</a>
[52] Fix | Delete
<a href="?page=delete_all_posts&tab=by_taxonomy" class="nav-tab <?php echo $active_tab == 'by_taxonomy' ? 'nav-tab-active' : ''; ?>">
[53] Fix | Delete
<?php esc_attr_e( 'By Taxonomy', 'wp-bulk-delete' ); ?>
[54] Fix | Delete
</a>
[55] Fix | Delete
<a href="?page=delete_all_posts&tab=by_author" class="nav-tab <?php echo $active_tab == 'by_author' ? 'nav-tab-active' : ''; ?>">
[56] Fix | Delete
<?php esc_attr_e( 'By Author', 'wp-bulk-delete' ); ?>
[57] Fix | Delete
</a>
[58] Fix | Delete
<a href="?page=delete_all_posts&tab=by_title" class="nav-tab <?php echo $active_tab == 'by_title' ? 'nav-tab-active' : ''; ?>">
[59] Fix | Delete
<?php esc_attr_e( 'By Title or Content', 'wp-bulk-delete' ); ?>
[60] Fix | Delete
</a>
[61] Fix | Delete
<a href="?page=delete_all_posts&tab=by_customfield" class="nav-tab <?php echo $active_tab == 'by_customfield' ? 'nav-tab-active' : ''; ?>">
[62] Fix | Delete
<?php esc_attr_e( 'By Custom fields', 'wp-bulk-delete' ); ?>
[63] Fix | Delete
</a>
[64] Fix | Delete
<a href="?page=delete_all_posts&tab=general" class="nav-tab <?php echo $active_tab == 'general' ? 'nav-tab-active' : ''; ?>">
[65] Fix | Delete
<?php esc_attr_e( 'General (By All)', 'wp-bulk-delete' ); ?>
[66] Fix | Delete
</a>
[67] Fix | Delete
</h1>
[68] Fix | Delete
[69] Fix | Delete
<?php
[70] Fix | Delete
if( $active_tab == 'general' || $active_tab == 'by_taxonomy' || $active_tab == 'by_author' || $active_tab == 'by_title' || $active_tab == 'by_posttype' || $active_tab == 'by_customfield' ) {
[71] Fix | Delete
// load General Post Delete Form
[72] Fix | Delete
require_once WPBD_PLUGIN_DIR . 'includes/admin/posts/wp-bulk-delete-posts.php';
[73] Fix | Delete
}
[74] Fix | Delete
if( $active_tab == 'cleanup' ){
[75] Fix | Delete
wpbd_cleanup_form( 'post' );
[76] Fix | Delete
}
[77] Fix | Delete
?>
[78] Fix | Delete
</div>
[79] Fix | Delete
</div>
[80] Fix | Delete
<br class="clear">
[81] Fix | Delete
</div>
[82] Fix | Delete
[83] Fix | Delete
</div><!-- /.wrap -->
[84] Fix | Delete
<?php
[85] Fix | Delete
}
[86] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function