Version Description
Download this release
Release Info
Developer | sudar |
Plugin | Bulk Delete |
Version | 5.5.2 |
Comparing to | |
See all releases |
Code changes from version 5.5.1 to 5.5.2
- bulk-delete.php +5 -3
- include/base/class-bd-meta-box-module.php +0 -47
- include/base/users/class-bd-user-meta-box-module.php +149 -0
- include/compatibility/advanced-custom-fields-pro.php +22 -0
- include/compatibility/woocommerce.php +2 -2
- include/libraries/EDD_SL_Plugin_Updater.php +3 -3
- include/posts/class-bulk-delete-posts.php +1 -1
- include/users/modules/class-bulk-delete-users-by-user-meta.php +2 -28
- include/users/modules/class-bulk-delete-users-by-user-role.php +2 -24
- languages/bulk-delete.pot +82 -75
- readme.txt +2 -2
bulk-delete.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin URI: http://bulkwp.com
|
6 |
* Description: Bulk delete users and posts from selected categories, tags, post types, custom taxonomies or by post status like drafts, scheduled posts, revisions etc.
|
7 |
* Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
|
8 |
-
* Version: 5.5.
|
9 |
* License: GPL
|
10 |
* Author: Sudar
|
11 |
* Author URI: http://sudarmuthu.com/
|
@@ -14,7 +14,7 @@
|
|
14 |
* === RELEASE NOTES ===
|
15 |
* Check readme file for full release notes
|
16 |
*
|
17 |
-
* @version 5.5.
|
18 |
* @author Sudar
|
19 |
* @package BulkDelete
|
20 |
*/
|
@@ -49,7 +49,7 @@ final class Bulk_Delete {
|
|
49 |
private static $instance;
|
50 |
|
51 |
// version
|
52 |
-
const VERSION = '5.5.
|
53 |
|
54 |
// Numeric constants
|
55 |
const MENU_ORDER = '26.9966';
|
@@ -210,6 +210,7 @@ final class Bulk_Delete {
|
|
210 |
*/
|
211 |
private function includes() {
|
212 |
require_once self::$PLUGIN_DIR . '/include/base/class-bd-meta-box-module.php';
|
|
|
213 |
require_once self::$PLUGIN_DIR . '/include/base/class-bd-page.php';
|
214 |
|
215 |
require_once self::$PLUGIN_DIR . '/include/ui/form.php';
|
@@ -241,6 +242,7 @@ final class Bulk_Delete {
|
|
241 |
require_once self::$PLUGIN_DIR . '/include/compatibility/simple-login-log.php';
|
242 |
require_once self::$PLUGIN_DIR . '/include/compatibility/the-event-calendar.php';
|
243 |
require_once self::$PLUGIN_DIR . '/include/compatibility/woocommerce.php';
|
|
|
244 |
|
245 |
require_once self::$PLUGIN_DIR . '/include/deprecated/class-bulk-delete-users.php';
|
246 |
require_once self::$PLUGIN_DIR . '/include/deprecated/deprecated.php';
|
5 |
* Plugin URI: http://bulkwp.com
|
6 |
* Description: Bulk delete users and posts from selected categories, tags, post types, custom taxonomies or by post status like drafts, scheduled posts, revisions etc.
|
7 |
* Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
|
8 |
+
* Version: 5.5.2
|
9 |
* License: GPL
|
10 |
* Author: Sudar
|
11 |
* Author URI: http://sudarmuthu.com/
|
14 |
* === RELEASE NOTES ===
|
15 |
* Check readme file for full release notes
|
16 |
*
|
17 |
+
* @version 5.5.2
|
18 |
* @author Sudar
|
19 |
* @package BulkDelete
|
20 |
*/
|
49 |
private static $instance;
|
50 |
|
51 |
// version
|
52 |
+
const VERSION = '5.5.2';
|
53 |
|
54 |
// Numeric constants
|
55 |
const MENU_ORDER = '26.9966';
|
210 |
*/
|
211 |
private function includes() {
|
212 |
require_once self::$PLUGIN_DIR . '/include/base/class-bd-meta-box-module.php';
|
213 |
+
require_once self::$PLUGIN_DIR . '/include/base/users/class-bd-user-meta-box-module.php';
|
214 |
require_once self::$PLUGIN_DIR . '/include/base/class-bd-page.php';
|
215 |
|
216 |
require_once self::$PLUGIN_DIR . '/include/ui/form.php';
|
242 |
require_once self::$PLUGIN_DIR . '/include/compatibility/simple-login-log.php';
|
243 |
require_once self::$PLUGIN_DIR . '/include/compatibility/the-event-calendar.php';
|
244 |
require_once self::$PLUGIN_DIR . '/include/compatibility/woocommerce.php';
|
245 |
+
require_once self::$PLUGIN_DIR . '/include/compatibility/advanced-custom-fields-pro.php';
|
246 |
|
247 |
require_once self::$PLUGIN_DIR . '/include/deprecated/class-bulk-delete-users.php';
|
248 |
require_once self::$PLUGIN_DIR . '/include/deprecated/deprecated.php';
|
include/base/class-bd-meta-box-module.php
CHANGED
@@ -247,53 +247,6 @@ abstract class BD_Meta_Box_Module {
|
|
247 |
bd_render_cron_settings( $this->field_slug, $this->scheduler_url );
|
248 |
}
|
249 |
|
250 |
-
/**
|
251 |
-
* Render User Login restrict settings.
|
252 |
-
*
|
253 |
-
* @since 5.5
|
254 |
-
*/
|
255 |
-
protected function render_user_login_restrict_settings() {
|
256 |
-
if ( bd_is_simple_login_log_present() ) {
|
257 |
-
$disabled = '';
|
258 |
-
} else {
|
259 |
-
$disabled = 'disabled';
|
260 |
-
}
|
261 |
-
?>
|
262 |
-
<tr>
|
263 |
-
<td scope="row" colspan="2">
|
264 |
-
<input name="smbd_<?php echo $this->field_slug; ?>_login_restrict" id="smbd_<?php echo $this->field_slug; ?>_login_restrict" value="true" type="checkbox" <?php echo $disabled; ?>>
|
265 |
-
<?php _e( 'Only restrict to users who have not logged in the last ', 'bulk-delete' );?>
|
266 |
-
<input type="number" name="smbd_<?php echo $this->field_slug; ?>_login_days" id="smbd_<?php echo $this->field_slug; ?>_login_days" class="screen-per-page" value="0" min="0" disabled> <?php _e( 'days', 'bulk-delete' );?>.
|
267 |
-
<?php
|
268 |
-
if ( 'disabled' == $disabled ) {
|
269 |
-
?>
|
270 |
-
<span style = "color:red">
|
271 |
-
<?php _e( 'Need the free "Simple Login Log" Plugin', 'bulk-delete' ); ?> <a href = "http://wordpress.org/plugins/simple-login-log/">Install now</a>
|
272 |
-
</span>
|
273 |
-
<?php
|
274 |
-
}
|
275 |
-
?>
|
276 |
-
</td>
|
277 |
-
</tr>
|
278 |
-
<?php
|
279 |
-
}
|
280 |
-
|
281 |
-
/**
|
282 |
-
* Render delete user with no posts settings.
|
283 |
-
*
|
284 |
-
* @since 5.5
|
285 |
-
*/
|
286 |
-
protected function render_user_with_no_posts_settings() {
|
287 |
-
?>
|
288 |
-
<tr>
|
289 |
-
<td scope="row" colspan="2">
|
290 |
-
<input name="smbd_<?php echo $this->field_slug; ?>_no_posts" id="smbd_<?php echo $this->field_slug; ?>_no_posts" value="true" type="checkbox">
|
291 |
-
<?php _e( "Only if user doesn't have any post. Only posts from 'post' post type would be considered.", 'bulk-delete' ); ?>
|
292 |
-
</td>
|
293 |
-
</tr>
|
294 |
-
<?php
|
295 |
-
}
|
296 |
-
|
297 |
/**
|
298 |
* Render submit button.
|
299 |
*
|
247 |
bd_render_cron_settings( $this->field_slug, $this->scheduler_url );
|
248 |
}
|
249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
/**
|
251 |
* Render submit button.
|
252 |
*
|
include/base/users/class-bd-user-meta-box-module.php
ADDED
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Base class for a Bulk Delete User Meta Box Module.
|
4 |
+
*
|
5 |
+
* @since 5.5.2
|
6 |
+
* @author Sudar
|
7 |
+
* @package BulkDelete\Base\Users
|
8 |
+
*/
|
9 |
+
|
10 |
+
defined( 'ABSPATH' ) || exit; // Exit if accessed directly
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Encapsulates the Bulk Delete User Meta box Module Logic.
|
14 |
+
* All Bulk Delete User Meta box Modules should extend this class.
|
15 |
+
*
|
16 |
+
* @see BD_Meta_Box_Module
|
17 |
+
* @since 5.5.2
|
18 |
+
* @abstract
|
19 |
+
*/
|
20 |
+
abstract class BD_User_Meta_Box_Module extends BD_Meta_Box_Module {
|
21 |
+
|
22 |
+
/**
|
23 |
+
* Query and Delete users.
|
24 |
+
*
|
25 |
+
* @since 5.5.2
|
26 |
+
* @access protected
|
27 |
+
* @param array $options Options to query users.
|
28 |
+
* @param array $delete_options Delete options.
|
29 |
+
* @return int Number of users who were deleted.
|
30 |
+
*/
|
31 |
+
protected function delete_users( $options, $delete_options ) {
|
32 |
+
$count = 0;
|
33 |
+
$users = get_users( $options );
|
34 |
+
|
35 |
+
foreach ( $users as $user ) {
|
36 |
+
if ( ! $this->can_delete_by_post_count( $delete_options, $user ) ) {
|
37 |
+
continue;
|
38 |
+
}
|
39 |
+
|
40 |
+
if ( ! $this->can_delete_by_logged_date( $delete_options, $user ) ) {
|
41 |
+
continue;
|
42 |
+
}
|
43 |
+
|
44 |
+
$deleted = wp_delete_user( $user->ID );
|
45 |
+
if ( $deleted ) {
|
46 |
+
$count ++;
|
47 |
+
}
|
48 |
+
}
|
49 |
+
|
50 |
+
return $count;
|
51 |
+
}
|
52 |
+
|
53 |
+
/**
|
54 |
+
* Can the user be deleted based on the 'post count' option?
|
55 |
+
*
|
56 |
+
* @since 5.5.2
|
57 |
+
* @access protected
|
58 |
+
* @param array $delete_options Delete Options.
|
59 |
+
* @param object $user User objet that needs to be deleted.
|
60 |
+
* @return bool True if the user can be deleted, false otherwise.
|
61 |
+
*/
|
62 |
+
protected function can_delete_by_post_count( $delete_options, $user ) {
|
63 |
+
if ( $delete_options['no_posts'] && count_user_posts( $user->ID ) > 0 ) {
|
64 |
+
return false;
|
65 |
+
}
|
66 |
+
|
67 |
+
return true;
|
68 |
+
}
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Can the user be deleted based on the 'post count' option?
|
72 |
+
*
|
73 |
+
* @since 5.5.2
|
74 |
+
* @access protected
|
75 |
+
* @param array $delete_options Delete Options.
|
76 |
+
* @param object $user User object that needs to be deleted.
|
77 |
+
* @return bool True if the user can be deleted, false otherwise.
|
78 |
+
*/
|
79 |
+
protected function can_delete_by_logged_date( $delete_options, $user ) {
|
80 |
+
if ( $delete_options['login_restrict'] ) {
|
81 |
+
$login_days = $delete_options['login_days'];
|
82 |
+
$last_login = bd_get_last_login( $user->ID );
|
83 |
+
|
84 |
+
if ( null != $last_login ) {
|
85 |
+
if ( strtotime( $last_login ) > strtotime( '-' . $login_days . 'days' ) ) {
|
86 |
+
return false;
|
87 |
+
}
|
88 |
+
} else {
|
89 |
+
if ( $login_days > 0 ) {
|
90 |
+
return false;
|
91 |
+
}
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
return true;
|
96 |
+
}
|
97 |
+
|
98 |
+
/**
|
99 |
+
* Render User Login restrict settings.
|
100 |
+
*
|
101 |
+
* @since 5.5
|
102 |
+
*/
|
103 |
+
protected function render_user_login_restrict_settings() {
|
104 |
+
if ( bd_is_simple_login_log_present() ) {
|
105 |
+
$disabled = '';
|
106 |
+
} else {
|
107 |
+
$disabled = 'disabled';
|
108 |
+
}
|
109 |
+
?>
|
110 |
+
<tr>
|
111 |
+
<td scope="row" colspan="2">
|
112 |
+
<input name="smbd_<?php echo $this->field_slug; ?>_login_restrict" id="smbd_<?php echo $this->field_slug; ?>_login_restrict" value="true" type="checkbox" <?php echo $disabled; ?>>
|
113 |
+
<?php _e( 'Restrict to users who have not logged in the last ', 'bulk-delete' );?>
|
114 |
+
<input type="number" name="smbd_<?php echo $this->field_slug; ?>_login_days" id="smbd_<?php echo $this->field_slug; ?>_login_days" class="screen-per-page" value="0" min="0" disabled> <?php _e( 'days', 'bulk-delete' );?>.
|
115 |
+
<?php
|
116 |
+
if ( 'disabled' == $disabled ) {
|
117 |
+
?>
|
118 |
+
<span style = "color:red">
|
119 |
+
<?php _e( 'Need the free "Simple Login Log" Plugin', 'bulk-delete' ); ?> <a href = "http://wordpress.org/plugins/simple-login-log/">Install now</a>
|
120 |
+
</span>
|
121 |
+
<?php
|
122 |
+
}
|
123 |
+
?>
|
124 |
+
</td>
|
125 |
+
</tr>
|
126 |
+
|
127 |
+
<tr>
|
128 |
+
<td scope="row" colspan="2">
|
129 |
+
<?php _e( 'Enter "0 days" to delete users who have never logged in after the "Simple Login Log" plugin has been installed.', 'bulk-delete' ); ?>
|
130 |
+
</tr>
|
131 |
+
<?php
|
132 |
+
}
|
133 |
+
|
134 |
+
/**
|
135 |
+
* Render delete user with no posts settings.
|
136 |
+
*
|
137 |
+
* @since 5.5
|
138 |
+
*/
|
139 |
+
protected function render_user_with_no_posts_settings() {
|
140 |
+
?>
|
141 |
+
<tr>
|
142 |
+
<td scope="row" colspan="2">
|
143 |
+
<input name="smbd_<?php echo $this->field_slug; ?>_no_posts" id="smbd_<?php echo $this->field_slug; ?>_no_posts" value="true" type="checkbox">
|
144 |
+
<?php _e( "Only if user doesn't have any post. Only posts from 'post' post type would be considered.", 'bulk-delete' ); ?>
|
145 |
+
</td>
|
146 |
+
</tr>
|
147 |
+
<?php
|
148 |
+
}
|
149 |
+
}
|
include/compatibility/advanced-custom-fields-pro.php
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Code to enable compatibility with 'Advanced Custom Fields Pro' plugin.
|
4 |
+
*
|
5 |
+
* @since 5.5.2
|
6 |
+
* @author Sudar
|
7 |
+
* @package BulkDelete\Util\Compatibility
|
8 |
+
*/
|
9 |
+
|
10 |
+
defined( 'ABSPATH' ) || exit; // Exit if accessed directly
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Deregister select2 style registered by Advanced Custom Fields Pro plugin.
|
14 |
+
* Advanced Custom Fields Pro is including their version of select2 in all admin pages.
|
15 |
+
* @see https://github.com/sudar/bulk-delete/issues/114
|
16 |
+
*
|
17 |
+
* @since 5.5.2
|
18 |
+
*/
|
19 |
+
function bd_deregister_acf_select2() {
|
20 |
+
wp_deregister_style( 'select2' );
|
21 |
+
}
|
22 |
+
add_action( 'bd_before_admin_enqueue_scripts', 'bd_deregister_acf_select2' );
|
include/compatibility/woocommerce.php
CHANGED
@@ -17,7 +17,7 @@ defined( 'ABSPATH' ) || exit; // Exit if accessed directly
|
|
17 |
*
|
18 |
* @since 5.5.1
|
19 |
*/
|
20 |
-
function
|
21 |
wp_deregister_script( 'select2' );
|
22 |
}
|
23 |
-
add_action( 'bd_before_admin_enqueue_scripts', '
|
17 |
*
|
18 |
* @since 5.5.1
|
19 |
*/
|
20 |
+
function bd_deregister_woo_select2() {
|
21 |
wp_deregister_script( 'select2' );
|
22 |
}
|
23 |
+
add_action( 'bd_before_admin_enqueue_scripts', 'bd_deregister_woo_select2' );
|
include/libraries/EDD_SL_Plugin_Updater.php
CHANGED
@@ -175,14 +175,14 @@ class EDD_SL_Plugin_Updater {
|
|
175 |
|
176 |
if ( empty( $version_info->download_link ) ) {
|
177 |
printf(
|
178 |
-
__( 'There is a new version of %1$s available. <a target="_blank" class="thickbox" href="%2$s">View version %3$s details</a>.', '
|
179 |
esc_html( $version_info->name ),
|
180 |
esc_url( $changelog_link ),
|
181 |
esc_html( $version_info->new_version )
|
182 |
);
|
183 |
} else {
|
184 |
printf(
|
185 |
-
__( 'There is a new version of %1$s available. <a target="_blank" class="thickbox" href="%2$s">View version %3$s details</a> or <a href="%4$s">update now</a>.', '
|
186 |
esc_html( $version_info->name ),
|
187 |
esc_url( $changelog_link ),
|
188 |
esc_html( $version_info->new_version ),
|
@@ -322,7 +322,7 @@ class EDD_SL_Plugin_Updater {
|
|
322 |
}
|
323 |
|
324 |
if( ! current_user_can( 'update_plugins' ) ) {
|
325 |
-
wp_die( __( 'You do not have permission to install plugin updates', '
|
326 |
}
|
327 |
|
328 |
$response = $this->api_request( 'plugin_latest_version', array( 'slug' => $_REQUEST['slug'] ) );
|
175 |
|
176 |
if ( empty( $version_info->download_link ) ) {
|
177 |
printf(
|
178 |
+
__( 'There is a new version of %1$s available. <a target="_blank" class="thickbox" href="%2$s">View version %3$s details</a>.', 'bulk-delete'),
|
179 |
esc_html( $version_info->name ),
|
180 |
esc_url( $changelog_link ),
|
181 |
esc_html( $version_info->new_version )
|
182 |
);
|
183 |
} else {
|
184 |
printf(
|
185 |
+
__( 'There is a new version of %1$s available. <a target="_blank" class="thickbox" href="%2$s">View version %3$s details</a> or <a href="%4$s">update now</a>.', 'bulk-delete'),
|
186 |
esc_html( $version_info->name ),
|
187 |
esc_url( $changelog_link ),
|
188 |
esc_html( $version_info->new_version ),
|
322 |
}
|
323 |
|
324 |
if( ! current_user_can( 'update_plugins' ) ) {
|
325 |
+
wp_die( __( 'You do not have permission to install plugin updates', 'bulk-delete'), __( 'Error', 'bulk-delete'), array( 'response' => 403 ) );
|
326 |
}
|
327 |
|
328 |
$response = $this->api_request( 'plugin_latest_version', array( 'slug' => $_REQUEST['slug'] ) );
|
include/posts/class-bulk-delete-posts.php
CHANGED
@@ -275,7 +275,7 @@ class Bulk_Delete_Posts {
|
|
275 |
public static function do_delete_posts_by_category() {
|
276 |
$delete_options = array();
|
277 |
|
278 |
-
$delete_options['post_type'] = array_get( $_POST, '
|
279 |
$delete_options['selected_cats'] = array_get( $_POST, 'smbd_cats' );
|
280 |
$delete_options['restrict'] = array_get_bool( $_POST, 'smbd_cats_restrict', false );
|
281 |
$delete_options['private'] = array_get_bool( $_POST, 'smbd_cats_private', false );
|
275 |
public static function do_delete_posts_by_category() {
|
276 |
$delete_options = array();
|
277 |
|
278 |
+
$delete_options['post_type'] = array_get( $_POST, 'smbd_cats_post_type', 'post' );
|
279 |
$delete_options['selected_cats'] = array_get( $_POST, 'smbd_cats' );
|
280 |
$delete_options['restrict'] = array_get_bool( $_POST, 'smbd_cats_restrict', false );
|
281 |
$delete_options['private'] = array_get_bool( $_POST, 'smbd_cats_private', false );
|
include/users/modules/class-bulk-delete-users-by-user-meta.php
CHANGED
@@ -14,7 +14,7 @@ defined( 'ABSPATH' ) || exit; // Exit if accessed directly
|
|
14 |
*
|
15 |
* @since 5.5
|
16 |
*/
|
17 |
-
class Bulk_Delete_Users_By_User_Meta extends
|
18 |
/**
|
19 |
* Make this class a "hybrid Singleton".
|
20 |
*
|
@@ -131,8 +131,6 @@ class Bulk_Delete_Users_By_User_Meta extends BD_Meta_Box_Module {
|
|
131 |
require_once ABSPATH . 'wp-admin/includes/user.php';
|
132 |
}
|
133 |
|
134 |
-
$count = 0;
|
135 |
-
|
136 |
$options = array(
|
137 |
'meta_key' => $delete_options['meta_key'],
|
138 |
'meta_value' => $delete_options['meta_value'],
|
@@ -143,31 +141,7 @@ class Bulk_Delete_Users_By_User_Meta extends BD_Meta_Box_Module {
|
|
143 |
$options['number'] = $delete_options['limit_to'];
|
144 |
}
|
145 |
|
146 |
-
$
|
147 |
-
|
148 |
-
foreach ( $users as $user ) {
|
149 |
-
if ( $delete_options['no_posts'] && count_user_posts( $user->ID ) > 0 ) {
|
150 |
-
continue;
|
151 |
-
}
|
152 |
-
|
153 |
-
if ( $delete_options['login_restrict'] ) {
|
154 |
-
$login_days = $delete_options['login_days'];
|
155 |
-
$last_login = bd_get_last_login( $user->ID );
|
156 |
-
|
157 |
-
if ( null != $last_login ) {
|
158 |
-
if ( strtotime( $last_login ) > strtotime( '-' . $login_days . 'days' ) ) {
|
159 |
-
continue;
|
160 |
-
}
|
161 |
-
} else {
|
162 |
-
continue;
|
163 |
-
}
|
164 |
-
}
|
165 |
-
|
166 |
-
wp_delete_user( $user->ID );
|
167 |
-
$count ++;
|
168 |
-
}
|
169 |
-
|
170 |
-
return $count;
|
171 |
}
|
172 |
|
173 |
/**
|
14 |
*
|
15 |
* @since 5.5
|
16 |
*/
|
17 |
+
class Bulk_Delete_Users_By_User_Meta extends BD_User_Meta_Box_Module {
|
18 |
/**
|
19 |
* Make this class a "hybrid Singleton".
|
20 |
*
|
131 |
require_once ABSPATH . 'wp-admin/includes/user.php';
|
132 |
}
|
133 |
|
|
|
|
|
134 |
$options = array(
|
135 |
'meta_key' => $delete_options['meta_key'],
|
136 |
'meta_value' => $delete_options['meta_value'],
|
141 |
$options['number'] = $delete_options['limit_to'];
|
142 |
}
|
143 |
|
144 |
+
return $this->delete_users( $options, $delete_options );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
}
|
146 |
|
147 |
/**
|
include/users/modules/class-bulk-delete-users-by-user-role.php
CHANGED
@@ -14,7 +14,7 @@ defined( 'ABSPATH' ) || exit; // Exit if accessed directly
|
|
14 |
*
|
15 |
* @since 5.5
|
16 |
*/
|
17 |
-
class Bulk_Delete_Users_By_User_Role extends
|
18 |
/**
|
19 |
* Make this class a "hybrid Singleton".
|
20 |
*
|
@@ -132,29 +132,7 @@ class Bulk_Delete_Users_By_User_Role extends BD_Meta_Box_Module {
|
|
132 |
$options['number'] = $delete_options['limit_to'];
|
133 |
}
|
134 |
|
135 |
-
$
|
136 |
-
|
137 |
-
foreach ( $users as $user ) {
|
138 |
-
if ( $delete_options['no_posts'] && count_user_posts( $user->ID ) > 0 ) {
|
139 |
-
continue;
|
140 |
-
}
|
141 |
-
|
142 |
-
if ( $delete_options['login_restrict'] ) {
|
143 |
-
$login_days = $delete_options['login_days'];
|
144 |
-
$last_login = bd_get_last_login( $user->ID );
|
145 |
-
|
146 |
-
if ( null != $last_login ) {
|
147 |
-
if ( strtotime( $last_login ) > strtotime( '-' . $login_days . 'days' ) ) {
|
148 |
-
continue;
|
149 |
-
}
|
150 |
-
} else {
|
151 |
-
continue;
|
152 |
-
}
|
153 |
-
}
|
154 |
-
|
155 |
-
wp_delete_user( $user->ID );
|
156 |
-
$count ++;
|
157 |
-
}
|
158 |
}
|
159 |
|
160 |
return $count;
|
14 |
*
|
15 |
* @since 5.5
|
16 |
*/
|
17 |
+
class Bulk_Delete_Users_By_User_Role extends BD_User_Meta_Box_Module {
|
18 |
/**
|
19 |
* Make this class a "hybrid Singleton".
|
20 |
*
|
132 |
$options['number'] = $delete_options['limit_to'];
|
133 |
}
|
134 |
|
135 |
+
$count += $this->delete_users( $options, $delete_options );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
}
|
137 |
|
138 |
return $count;
|
languages/bulk-delete.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Bulk Delete package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Bulk Delete 5.5.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/bulk-delete\n"
|
7 |
-
"POT-Creation-Date: 2015-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -17,83 +17,83 @@ msgstr ""
|
|
17 |
msgid "Cheatin’ huh?"
|
18 |
msgstr ""
|
19 |
|
20 |
-
#: bulk-delete.php:
|
21 |
msgid "Bulk WP"
|
22 |
msgstr ""
|
23 |
|
24 |
-
#: bulk-delete.php:
|
25 |
-
#: dist/bulk-delete.php:
|
26 |
#: include/ui/admin-ui.php:50
|
27 |
msgid "Bulk Delete Posts"
|
28 |
msgstr ""
|
29 |
|
30 |
-
#: bulk-delete.php:
|
31 |
-
#: dist/bulk-delete.php:
|
32 |
msgid "Bulk Delete Pages"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: bulk-delete.php:
|
36 |
-
#: dist/bulk-delete.php:
|
37 |
msgid "Bulk Delete Schedules"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: bulk-delete.php:
|
41 |
msgid "Scheduled Jobs"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: bulk-delete.php:
|
45 |
#: dist/include/license/class-bd-license.php:33
|
46 |
#: include/license/class-bd-license.php:33
|
47 |
msgid "Addon Licenses"
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: bulk-delete.php:
|
51 |
msgid "Bulk Delete System Info"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: bulk-delete.php:
|
55 |
msgid "System Info"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: bulk-delete.php:
|
59 |
msgid "By Post Status"
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: bulk-delete.php:
|
63 |
msgid "By Category"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: bulk-delete.php:
|
67 |
msgid "By Tag"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: bulk-delete.php:
|
71 |
msgid "By Custom Taxonomy"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: bulk-delete.php:
|
75 |
msgid "By Custom Post Types"
|
76 |
msgstr ""
|
77 |
|
78 |
-
#: bulk-delete.php:
|
79 |
msgid "By URL"
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: bulk-delete.php:
|
83 |
msgid "By Post Revision"
|
84 |
msgstr ""
|
85 |
|
86 |
-
#: bulk-delete.php:
|
87 |
msgid "By Page status"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: bulk-delete.php:
|
91 |
#: dist/include/misc/class-bulk-delete-misc.php:114
|
92 |
#: include/misc/class-bulk-delete-misc.php:114
|
93 |
msgid "WARNING: Posts deleted once cannot be retrieved back. Use with caution."
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: bulk-delete.php:
|
97 |
msgid "WARNING: Pages deleted once cannot be retrieved back. Use with caution."
|
98 |
msgstr ""
|
99 |
|
@@ -408,7 +408,6 @@ msgid "You need \"Bulk Delete From Trash\" Addon, to delete post in Trash."
|
|
408 |
msgstr ""
|
409 |
|
410 |
#: dist/include/base/class-bd-meta-box-module.php:265
|
411 |
-
#: include/base/class-bd-meta-box-module.php:265
|
412 |
msgid "Only restrict to users who have not logged in the last "
|
413 |
msgstr ""
|
414 |
|
@@ -416,7 +415,8 @@ msgstr ""
|
|
416 |
#: dist/include/meta/class-bulk-delete-comment-meta.php:134
|
417 |
#: dist/include/meta/class-bulk-delete-post-meta.php:134
|
418 |
#: dist/include/misc/class-bulk-delete-jetpack-contact-form-messages.php:110
|
419 |
-
#: dist/include/ui/form.php:46
|
|
|
420 |
#: include/meta/class-bulk-delete-comment-meta.php:134
|
421 |
#: include/meta/class-bulk-delete-post-meta.php:134
|
422 |
#: include/misc/class-bulk-delete-jetpack-contact-form-messages.php:110
|
@@ -431,12 +431,12 @@ msgid "days"
|
|
431 |
msgstr ""
|
432 |
|
433 |
#: dist/include/base/class-bd-meta-box-module.php:271
|
434 |
-
#: include/base/class-bd-meta-box-module.php:
|
435 |
msgid "Need the free \"Simple Login Log\" Plugin"
|
436 |
msgstr ""
|
437 |
|
438 |
#: dist/include/base/class-bd-meta-box-module.php:291
|
439 |
-
#: include/base/class-bd-meta-box-module.php:
|
440 |
msgid ""
|
441 |
"Only if user doesn't have any post. Only posts from 'post' post type would "
|
442 |
"be considered."
|
@@ -453,7 +453,7 @@ msgstr ""
|
|
453 |
#: dist/include/posts/class-bulk-delete-posts.php:429
|
454 |
#: dist/include/posts/class-bulk-delete-posts.php:603
|
455 |
#: dist/include/posts/class-bulk-delete-posts.php:768
|
456 |
-
#: include/base/class-bd-meta-box-module.php:
|
457 |
#: include/meta/class-bulk-delete-comment-meta.php:240
|
458 |
#: include/meta/class-bulk-delete-post-meta.php:240
|
459 |
#: include/meta/class-bulk-delete-user-meta.php:216
|
@@ -467,7 +467,7 @@ msgstr ""
|
|
467 |
#: tmp_addon/bulk-delete-posts-by-attachment.php:288
|
468 |
#: tmp_addon/bulk-delete-posts-by-content.php:292
|
469 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:306
|
470 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
471 |
#: tmp_addon/bulk-delete-posts-by-title.php:252
|
472 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:222
|
473 |
#: tmp_addon/bulk-delete-posts-by-user.php:265
|
@@ -511,7 +511,7 @@ msgstr ""
|
|
511 |
#: include/ui/form.php:121 tmp_addon/bulk-delete-posts-by-attachment.php:209
|
512 |
#: tmp_addon/bulk-delete-posts-by-content.php:227
|
513 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:237
|
514 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
515 |
#: tmp_addon/bulk-delete-posts-by-title.php:187
|
516 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:161
|
517 |
#: tmp_addon/bulk-delete-posts-by-user.php:205
|
@@ -752,7 +752,7 @@ msgstr ""
|
|
752 |
#: include/ui/form.php:132 tmp_addon/bulk-delete-posts-by-attachment.php:222
|
753 |
#: tmp_addon/bulk-delete-posts-by-content.php:240
|
754 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:250
|
755 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
756 |
#: tmp_addon/bulk-delete-posts-by-title.php:200
|
757 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:174
|
758 |
#: tmp_addon/bulk-delete-posts-by-user.php:218
|
@@ -829,7 +829,7 @@ msgstr ""
|
|
829 |
#: tmp_addon/bulk-delete-posts-by-attachment.php:202
|
830 |
#: tmp_addon/bulk-delete-posts-by-content.php:220
|
831 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:230
|
832 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
833 |
#: tmp_addon/bulk-delete-posts-by-title.php:180
|
834 |
msgid ""
|
835 |
"Use this option if there are more than 1000 posts and the script timesout."
|
@@ -847,7 +847,7 @@ msgstr ""
|
|
847 |
#: include/ui/form.php:120 tmp_addon/bulk-delete-posts-by-attachment.php:208
|
848 |
#: tmp_addon/bulk-delete-posts-by-content.php:226
|
849 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:236
|
850 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
851 |
#: tmp_addon/bulk-delete-posts-by-title.php:186
|
852 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:160
|
853 |
#: tmp_addon/bulk-delete-posts-by-user.php:204
|
@@ -866,7 +866,7 @@ msgstr ""
|
|
866 |
#: include/ui/form.php:122 tmp_addon/bulk-delete-posts-by-attachment.php:210
|
867 |
#: tmp_addon/bulk-delete-posts-by-content.php:228
|
868 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:238
|
869 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
870 |
#: tmp_addon/bulk-delete-posts-by-title.php:188
|
871 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:162
|
872 |
#: tmp_addon/bulk-delete-posts-by-user.php:206
|
@@ -885,7 +885,7 @@ msgstr ""
|
|
885 |
#: include/ui/form.php:124 tmp_addon/bulk-delete-posts-by-attachment.php:212
|
886 |
#: tmp_addon/bulk-delete-posts-by-content.php:230
|
887 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:240
|
888 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
889 |
#: tmp_addon/bulk-delete-posts-by-title.php:190
|
890 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:164
|
891 |
#: tmp_addon/bulk-delete-posts-by-user.php:208
|
@@ -902,7 +902,7 @@ msgstr ""
|
|
902 |
#: tmp_addon/bulk-delete-posts-by-attachment.php:228
|
903 |
#: tmp_addon/bulk-delete-posts-by-content.php:246
|
904 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:256
|
905 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
906 |
#: tmp_addon/bulk-delete-posts-by-title.php:206
|
907 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:180
|
908 |
#: tmp_addon/bulk-delete-posts-by-user.php:224
|
@@ -923,7 +923,7 @@ msgstr ""
|
|
923 |
#: tmp_addon/bulk-delete-posts-by-attachment.php:235
|
924 |
#: tmp_addon/bulk-delete-posts-by-content.php:254
|
925 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:264
|
926 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
927 |
#: tmp_addon/bulk-delete-posts-by-title.php:214
|
928 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:188
|
929 |
#: tmp_addon/bulk-delete-posts-by-user.php:232
|
@@ -1171,7 +1171,7 @@ msgstr ""
|
|
1171 |
#: include/ui/form.php:100 tmp_addon/bulk-delete-posts-by-attachment.php:200
|
1172 |
#: tmp_addon/bulk-delete-posts-by-content.php:218
|
1173 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:228
|
1174 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
1175 |
#: tmp_addon/bulk-delete-posts-by-title.php:178
|
1176 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:151
|
1177 |
#: tmp_addon/bulk-delete-posts-by-user.php:195
|
@@ -1184,7 +1184,7 @@ msgstr ""
|
|
1184 |
#: include/ui/form.php:62 tmp_addon/bulk-delete-posts-by-attachment.php:183
|
1185 |
#: tmp_addon/bulk-delete-posts-by-content.php:203
|
1186 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:211
|
1187 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
1188 |
#: tmp_addon/bulk-delete-posts-by-title.php:163
|
1189 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:143
|
1190 |
#: tmp_addon/bulk-delete-posts-by-user.php:187
|
@@ -1197,7 +1197,7 @@ msgstr ""
|
|
1197 |
#: include/ui/form.php:63 tmp_addon/bulk-delete-posts-by-attachment.php:184
|
1198 |
#: tmp_addon/bulk-delete-posts-by-content.php:204
|
1199 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:212
|
1200 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
1201 |
#: tmp_addon/bulk-delete-posts-by-title.php:164
|
1202 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:144
|
1203 |
#: tmp_addon/bulk-delete-posts-by-user.php:188
|
@@ -1300,7 +1300,8 @@ msgid "Select the posts which you want to delete"
|
|
1300 |
msgstr ""
|
1301 |
|
1302 |
#: dist/include/posts/class-bulk-delete-posts.php:38
|
1303 |
-
|
|
|
1304 |
msgstr ""
|
1305 |
|
1306 |
#: dist/include/posts/class-bulk-delete-posts.php:38
|
@@ -1338,11 +1339,13 @@ msgid "All Pending posts"
|
|
1338 |
msgstr ""
|
1339 |
|
1340 |
#: dist/include/posts/class-bulk-delete-posts.php:59
|
1341 |
-
|
|
|
1342 |
msgstr ""
|
1343 |
|
1344 |
#: dist/include/posts/class-bulk-delete-posts.php:66
|
1345 |
-
|
|
|
1346 |
msgstr ""
|
1347 |
|
1348 |
#: dist/include/posts/class-bulk-delete-posts.php:73
|
@@ -1593,7 +1596,22 @@ msgstr ""
|
|
1593 |
msgid "Please include this information when posting support requests."
|
1594 |
msgstr ""
|
1595 |
|
1596 |
-
#: dist/include/system-info/class-bulk-delete-system-info.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1597 |
#: include/system-info/class-bulk-delete-system-info.php:83
|
1598 |
msgid ""
|
1599 |
"To copy the system info, click below then press Ctrl + C (PC) or Cmd + C "
|
@@ -1681,7 +1699,7 @@ msgstr ""
|
|
1681 |
#: tmp_addon/bulk-delete-posts-by-attachment.php:163
|
1682 |
#: tmp_addon/bulk-delete-posts-by-content.php:186
|
1683 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:191
|
1684 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
1685 |
#: tmp_addon/bulk-delete-posts-by-title.php:145
|
1686 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:127
|
1687 |
#: tmp_addon/bulk-delete-posts-by-user.php:171
|
@@ -1768,13 +1786,13 @@ msgid "Meta Value"
|
|
1768 |
msgstr ""
|
1769 |
|
1770 |
#: dist/include/users/modules/class-bulk-delete-users-by-user-meta.php:185
|
1771 |
-
#: include/users/modules/class-bulk-delete-users-by-user-meta.php:
|
1772 |
msgid ""
|
1773 |
"Are you sure you want to delete all the users from the selected user meta?"
|
1774 |
msgstr ""
|
1775 |
|
1776 |
#: dist/include/users/modules/class-bulk-delete-users-by-user-meta.php:188
|
1777 |
-
#: include/users/modules/class-bulk-delete-users-by-user-meta.php:
|
1778 |
msgid ""
|
1779 |
"Please enter the value for the user meta field based on which you want to "
|
1780 |
"delete users"
|
@@ -1801,13 +1819,13 @@ msgid "Select the user roles from which you want to delete users"
|
|
1801 |
msgstr ""
|
1802 |
|
1803 |
#: dist/include/users/modules/class-bulk-delete-users-by-user-role.php:174
|
1804 |
-
#: include/users/modules/class-bulk-delete-users-by-user-role.php:
|
1805 |
msgid ""
|
1806 |
"Are you sure you want to delete all the users from the selected user role?"
|
1807 |
msgstr ""
|
1808 |
|
1809 |
#: dist/include/users/modules/class-bulk-delete-users-by-user-role.php:177
|
1810 |
-
#: include/users/modules/class-bulk-delete-users-by-user-role.php:
|
1811 |
msgid "Select at least one user role from which users should be deleted"
|
1812 |
msgstr ""
|
1813 |
|
@@ -1824,29 +1842,14 @@ msgstr ""
|
|
1824 |
msgid "All"
|
1825 |
msgstr ""
|
1826 |
|
1827 |
-
#: include/
|
1828 |
-
msgid "
|
1829 |
-
msgstr ""
|
1830 |
-
|
1831 |
-
#: include/posts/class-bulk-delete-posts.php:59
|
1832 |
-
msgid "All Scheduled posts"
|
1833 |
msgstr ""
|
1834 |
|
1835 |
-
#: include/
|
1836 |
-
msgid "All Private posts"
|
1837 |
-
msgstr ""
|
1838 |
-
|
1839 |
-
#: include/system-info/class-bulk-delete-system-info.php:64
|
1840 |
msgid ""
|
1841 |
-
"
|
1842 |
-
"
|
1843 |
-
"be deleted."
|
1844 |
-
msgstr ""
|
1845 |
-
|
1846 |
-
#: include/system-info/class-bulk-delete-system-info.php:72
|
1847 |
-
msgid ""
|
1848 |
-
"DISABLE_WP_CRON is <a href=\"%s\" target=\"_blank\">enabled</a>. This "
|
1849 |
-
"prevents scheduler from running."
|
1850 |
msgstr ""
|
1851 |
|
1852 |
#: node_modules/grunt-wp-i18n/test/fixtures/basic-theme/exclude/file.php:3
|
@@ -2009,7 +2012,7 @@ msgstr ""
|
|
2009 |
#: tmp_addon/bulk-delete-posts-by-attachment.php:377
|
2010 |
#: tmp_addon/bulk-delete-posts-by-content.php:388
|
2011 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:501
|
2012 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
2013 |
#: tmp_addon/bulk-delete-posts-by-title.php:398
|
2014 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:322
|
2015 |
#: tmp_addon/bulk-delete-posts-by-user.php:335
|
@@ -2370,28 +2373,32 @@ msgstr ""
|
|
2370 |
msgid "last"
|
2371 |
msgstr ""
|
2372 |
|
2373 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
|
|
|
|
|
|
|
|
2374 |
msgid " duplicate titles."
|
2375 |
msgstr ""
|
2376 |
|
2377 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
2378 |
msgid "Sorry something went wrong. Kindly try again."
|
2379 |
msgstr ""
|
2380 |
|
2381 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
2382 |
msgid ""
|
2383 |
"Posts with duplicate title matching the selected settings are scheduled for "
|
2384 |
"deletion."
|
2385 |
msgstr ""
|
2386 |
|
2387 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
2388 |
#: tmp_addon/bulk-delete-posts-by-title.php:255
|
2389 |
msgid "Deleted %d post using the selected title condition"
|
2390 |
msgid_plural "Deleted %d posts using the selected title condition"
|
2391 |
msgstr[0] ""
|
2392 |
msgstr[1] ""
|
2393 |
|
2394 |
-
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:
|
2395 |
msgid ""
|
2396 |
"Are you sure you want to delete all the posts that have duplicate title?"
|
2397 |
msgstr ""
|
2 |
# This file is distributed under the same license as the Bulk Delete package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Bulk Delete 5.5.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/bulk-delete\n"
|
7 |
+
"POT-Creation-Date: 2015-10-05 17:14:49+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
17 |
msgid "Cheatin’ huh?"
|
18 |
msgstr ""
|
19 |
|
20 |
+
#: bulk-delete.php:296 dist/bulk-delete.php:294
|
21 |
msgid "Bulk WP"
|
22 |
msgstr ""
|
23 |
|
24 |
+
#: bulk-delete.php:298 bulk-delete.php:487 dist/bulk-delete.php:296
|
25 |
+
#: dist/bulk-delete.php:485 dist/include/ui/admin-ui.php:50
|
26 |
#: include/ui/admin-ui.php:50
|
27 |
msgid "Bulk Delete Posts"
|
28 |
msgstr ""
|
29 |
|
30 |
+
#: bulk-delete.php:299 bulk-delete.php:539 dist/bulk-delete.php:297
|
31 |
+
#: dist/bulk-delete.php:537
|
32 |
msgid "Bulk Delete Pages"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: bulk-delete.php:319 bulk-delete.php:600 dist/bulk-delete.php:317
|
36 |
+
#: dist/bulk-delete.php:598
|
37 |
msgid "Bulk Delete Schedules"
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: bulk-delete.php:319 dist/bulk-delete.php:317
|
41 |
msgid "Scheduled Jobs"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: bulk-delete.php:320 dist/bulk-delete.php:318
|
45 |
#: dist/include/license/class-bd-license.php:33
|
46 |
#: include/license/class-bd-license.php:33
|
47 |
msgid "Addon Licenses"
|
48 |
msgstr ""
|
49 |
|
50 |
+
#: bulk-delete.php:321 dist/bulk-delete.php:319
|
51 |
msgid "Bulk Delete System Info"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: bulk-delete.php:321 dist/bulk-delete.php:319
|
55 |
msgid "System Info"
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: bulk-delete.php:368 dist/bulk-delete.php:366
|
59 |
msgid "By Post Status"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: bulk-delete.php:369 dist/bulk-delete.php:367
|
63 |
msgid "By Category"
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: bulk-delete.php:370 dist/bulk-delete.php:368
|
67 |
msgid "By Tag"
|
68 |
msgstr ""
|
69 |
|
70 |
+
#: bulk-delete.php:371 dist/bulk-delete.php:369
|
71 |
msgid "By Custom Taxonomy"
|
72 |
msgstr ""
|
73 |
|
74 |
+
#: bulk-delete.php:372 dist/bulk-delete.php:370
|
75 |
msgid "By Custom Post Types"
|
76 |
msgstr ""
|
77 |
|
78 |
+
#: bulk-delete.php:373 dist/bulk-delete.php:371
|
79 |
msgid "By URL"
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: bulk-delete.php:374 dist/bulk-delete.php:372
|
83 |
msgid "By Post Revision"
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: bulk-delete.php:412 dist/bulk-delete.php:410
|
87 |
msgid "By Page status"
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: bulk-delete.php:503 dist/bulk-delete.php:501
|
91 |
#: dist/include/misc/class-bulk-delete-misc.php:114
|
92 |
#: include/misc/class-bulk-delete-misc.php:114
|
93 |
msgid "WARNING: Posts deleted once cannot be retrieved back. Use with caution."
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: bulk-delete.php:555 dist/bulk-delete.php:553
|
97 |
msgid "WARNING: Pages deleted once cannot be retrieved back. Use with caution."
|
98 |
msgstr ""
|
99 |
|
408 |
msgstr ""
|
409 |
|
410 |
#: dist/include/base/class-bd-meta-box-module.php:265
|
|
|
411 |
msgid "Only restrict to users who have not logged in the last "
|
412 |
msgstr ""
|
413 |
|
415 |
#: dist/include/meta/class-bulk-delete-comment-meta.php:134
|
416 |
#: dist/include/meta/class-bulk-delete-post-meta.php:134
|
417 |
#: dist/include/misc/class-bulk-delete-jetpack-contact-form-messages.php:110
|
418 |
+
#: dist/include/ui/form.php:46
|
419 |
+
#: include/base/users/class-bd-user-meta-box-module.php:114
|
420 |
#: include/meta/class-bulk-delete-comment-meta.php:134
|
421 |
#: include/meta/class-bulk-delete-post-meta.php:134
|
422 |
#: include/misc/class-bulk-delete-jetpack-contact-form-messages.php:110
|
431 |
msgstr ""
|
432 |
|
433 |
#: dist/include/base/class-bd-meta-box-module.php:271
|
434 |
+
#: include/base/users/class-bd-user-meta-box-module.php:119
|
435 |
msgid "Need the free \"Simple Login Log\" Plugin"
|
436 |
msgstr ""
|
437 |
|
438 |
#: dist/include/base/class-bd-meta-box-module.php:291
|
439 |
+
#: include/base/users/class-bd-user-meta-box-module.php:144
|
440 |
msgid ""
|
441 |
"Only if user doesn't have any post. Only posts from 'post' post type would "
|
442 |
"be considered."
|
453 |
#: dist/include/posts/class-bulk-delete-posts.php:429
|
454 |
#: dist/include/posts/class-bulk-delete-posts.php:603
|
455 |
#: dist/include/posts/class-bulk-delete-posts.php:768
|
456 |
+
#: include/base/class-bd-meta-box-module.php:277
|
457 |
#: include/meta/class-bulk-delete-comment-meta.php:240
|
458 |
#: include/meta/class-bulk-delete-post-meta.php:240
|
459 |
#: include/meta/class-bulk-delete-user-meta.php:216
|
467 |
#: tmp_addon/bulk-delete-posts-by-attachment.php:288
|
468 |
#: tmp_addon/bulk-delete-posts-by-content.php:292
|
469 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:306
|
470 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:257
|
471 |
#: tmp_addon/bulk-delete-posts-by-title.php:252
|
472 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:222
|
473 |
#: tmp_addon/bulk-delete-posts-by-user.php:265
|
511 |
#: include/ui/form.php:121 tmp_addon/bulk-delete-posts-by-attachment.php:209
|
512 |
#: tmp_addon/bulk-delete-posts-by-content.php:227
|
513 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:237
|
514 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:186
|
515 |
#: tmp_addon/bulk-delete-posts-by-title.php:187
|
516 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:161
|
517 |
#: tmp_addon/bulk-delete-posts-by-user.php:205
|
752 |
#: include/ui/form.php:132 tmp_addon/bulk-delete-posts-by-attachment.php:222
|
753 |
#: tmp_addon/bulk-delete-posts-by-content.php:240
|
754 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:250
|
755 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:199
|
756 |
#: tmp_addon/bulk-delete-posts-by-title.php:200
|
757 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:174
|
758 |
#: tmp_addon/bulk-delete-posts-by-user.php:218
|
829 |
#: tmp_addon/bulk-delete-posts-by-attachment.php:202
|
830 |
#: tmp_addon/bulk-delete-posts-by-content.php:220
|
831 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:230
|
832 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:179
|
833 |
#: tmp_addon/bulk-delete-posts-by-title.php:180
|
834 |
msgid ""
|
835 |
"Use this option if there are more than 1000 posts and the script timesout."
|
847 |
#: include/ui/form.php:120 tmp_addon/bulk-delete-posts-by-attachment.php:208
|
848 |
#: tmp_addon/bulk-delete-posts-by-content.php:226
|
849 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:236
|
850 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:185
|
851 |
#: tmp_addon/bulk-delete-posts-by-title.php:186
|
852 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:160
|
853 |
#: tmp_addon/bulk-delete-posts-by-user.php:204
|
866 |
#: include/ui/form.php:122 tmp_addon/bulk-delete-posts-by-attachment.php:210
|
867 |
#: tmp_addon/bulk-delete-posts-by-content.php:228
|
868 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:238
|
869 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:187
|
870 |
#: tmp_addon/bulk-delete-posts-by-title.php:188
|
871 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:162
|
872 |
#: tmp_addon/bulk-delete-posts-by-user.php:206
|
885 |
#: include/ui/form.php:124 tmp_addon/bulk-delete-posts-by-attachment.php:212
|
886 |
#: tmp_addon/bulk-delete-posts-by-content.php:230
|
887 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:240
|
888 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:189
|
889 |
#: tmp_addon/bulk-delete-posts-by-title.php:190
|
890 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:164
|
891 |
#: tmp_addon/bulk-delete-posts-by-user.php:208
|
902 |
#: tmp_addon/bulk-delete-posts-by-attachment.php:228
|
903 |
#: tmp_addon/bulk-delete-posts-by-content.php:246
|
904 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:256
|
905 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:205
|
906 |
#: tmp_addon/bulk-delete-posts-by-title.php:206
|
907 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:180
|
908 |
#: tmp_addon/bulk-delete-posts-by-user.php:224
|
923 |
#: tmp_addon/bulk-delete-posts-by-attachment.php:235
|
924 |
#: tmp_addon/bulk-delete-posts-by-content.php:254
|
925 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:264
|
926 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:213
|
927 |
#: tmp_addon/bulk-delete-posts-by-title.php:214
|
928 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:188
|
929 |
#: tmp_addon/bulk-delete-posts-by-user.php:232
|
1171 |
#: include/ui/form.php:100 tmp_addon/bulk-delete-posts-by-attachment.php:200
|
1172 |
#: tmp_addon/bulk-delete-posts-by-content.php:218
|
1173 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:228
|
1174 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:177
|
1175 |
#: tmp_addon/bulk-delete-posts-by-title.php:178
|
1176 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:151
|
1177 |
#: tmp_addon/bulk-delete-posts-by-user.php:195
|
1184 |
#: include/ui/form.php:62 tmp_addon/bulk-delete-posts-by-attachment.php:183
|
1185 |
#: tmp_addon/bulk-delete-posts-by-content.php:203
|
1186 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:211
|
1187 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:169
|
1188 |
#: tmp_addon/bulk-delete-posts-by-title.php:163
|
1189 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:143
|
1190 |
#: tmp_addon/bulk-delete-posts-by-user.php:187
|
1197 |
#: include/ui/form.php:63 tmp_addon/bulk-delete-posts-by-attachment.php:184
|
1198 |
#: tmp_addon/bulk-delete-posts-by-content.php:204
|
1199 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:212
|
1200 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:170
|
1201 |
#: tmp_addon/bulk-delete-posts-by-title.php:164
|
1202 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:144
|
1203 |
#: tmp_addon/bulk-delete-posts-by-user.php:188
|
1300 |
msgstr ""
|
1301 |
|
1302 |
#: dist/include/posts/class-bulk-delete-posts.php:38
|
1303 |
+
#: include/posts/class-bulk-delete-posts.php:38
|
1304 |
+
msgid "All published posts"
|
1305 |
msgstr ""
|
1306 |
|
1307 |
#: dist/include/posts/class-bulk-delete-posts.php:38
|
1339 |
msgstr ""
|
1340 |
|
1341 |
#: dist/include/posts/class-bulk-delete-posts.php:59
|
1342 |
+
#: include/posts/class-bulk-delete-posts.php:59
|
1343 |
+
msgid "All Scheduled posts"
|
1344 |
msgstr ""
|
1345 |
|
1346 |
#: dist/include/posts/class-bulk-delete-posts.php:66
|
1347 |
+
#: include/posts/class-bulk-delete-posts.php:66
|
1348 |
+
msgid "All Private posts"
|
1349 |
msgstr ""
|
1350 |
|
1351 |
#: dist/include/posts/class-bulk-delete-posts.php:73
|
1596 |
msgid "Please include this information when posting support requests."
|
1597 |
msgstr ""
|
1598 |
|
1599 |
+
#: dist/include/system-info/class-bulk-delete-system-info.php:64
|
1600 |
+
#: include/system-info/class-bulk-delete-system-info.php:64
|
1601 |
+
msgid ""
|
1602 |
+
"SAVEQUERIES is <a href=\"%s\" target=\"_blank\">enabled</a>. This puts "
|
1603 |
+
"additional load on the memory and will restrict the number of items that can "
|
1604 |
+
"be deleted."
|
1605 |
+
msgstr ""
|
1606 |
+
|
1607 |
+
#: dist/include/system-info/class-bulk-delete-system-info.php:72
|
1608 |
+
#: include/system-info/class-bulk-delete-system-info.php:72
|
1609 |
+
msgid ""
|
1610 |
+
"DISABLE_WP_CRON is <a href=\"%s\" target=\"_blank\">enabled</a>. This "
|
1611 |
+
"prevents scheduler from running."
|
1612 |
+
msgstr ""
|
1613 |
+
|
1614 |
+
#: dist/include/system-info/class-bulk-delete-system-info.php:83
|
1615 |
#: include/system-info/class-bulk-delete-system-info.php:83
|
1616 |
msgid ""
|
1617 |
"To copy the system info, click below then press Ctrl + C (PC) or Cmd + C "
|
1699 |
#: tmp_addon/bulk-delete-posts-by-attachment.php:163
|
1700 |
#: tmp_addon/bulk-delete-posts-by-content.php:186
|
1701 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:191
|
1702 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:163
|
1703 |
#: tmp_addon/bulk-delete-posts-by-title.php:145
|
1704 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:127
|
1705 |
#: tmp_addon/bulk-delete-posts-by-user.php:171
|
1786 |
msgstr ""
|
1787 |
|
1788 |
#: dist/include/users/modules/class-bulk-delete-users-by-user-meta.php:185
|
1789 |
+
#: include/users/modules/class-bulk-delete-users-by-user-meta.php:159
|
1790 |
msgid ""
|
1791 |
"Are you sure you want to delete all the users from the selected user meta?"
|
1792 |
msgstr ""
|
1793 |
|
1794 |
#: dist/include/users/modules/class-bulk-delete-users-by-user-meta.php:188
|
1795 |
+
#: include/users/modules/class-bulk-delete-users-by-user-meta.php:162
|
1796 |
msgid ""
|
1797 |
"Please enter the value for the user meta field based on which you want to "
|
1798 |
"delete users"
|
1819 |
msgstr ""
|
1820 |
|
1821 |
#: dist/include/users/modules/class-bulk-delete-users-by-user-role.php:174
|
1822 |
+
#: include/users/modules/class-bulk-delete-users-by-user-role.php:152
|
1823 |
msgid ""
|
1824 |
"Are you sure you want to delete all the users from the selected user role?"
|
1825 |
msgstr ""
|
1826 |
|
1827 |
#: dist/include/users/modules/class-bulk-delete-users-by-user-role.php:177
|
1828 |
+
#: include/users/modules/class-bulk-delete-users-by-user-role.php:155
|
1829 |
msgid "Select at least one user role from which users should be deleted"
|
1830 |
msgstr ""
|
1831 |
|
1842 |
msgid "All"
|
1843 |
msgstr ""
|
1844 |
|
1845 |
+
#: include/base/users/class-bd-user-meta-box-module.php:113
|
1846 |
+
msgid "Restrict to users who have not logged in the last "
|
|
|
|
|
|
|
|
|
1847 |
msgstr ""
|
1848 |
|
1849 |
+
#: include/base/users/class-bd-user-meta-box-module.php:129
|
|
|
|
|
|
|
|
|
1850 |
msgid ""
|
1851 |
+
"Enter \"0 days\" to delete users who have never logged in after the \"Simple "
|
1852 |
+
"Login Log\" plugin has been installed."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1853 |
msgstr ""
|
1854 |
|
1855 |
#: node_modules/grunt-wp-i18n/test/fixtures/basic-theme/exclude/file.php:3
|
2012 |
#: tmp_addon/bulk-delete-posts-by-attachment.php:377
|
2013 |
#: tmp_addon/bulk-delete-posts-by-content.php:388
|
2014 |
#: tmp_addon/bulk-delete-posts-by-custom-field.php:501
|
2015 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:367
|
2016 |
#: tmp_addon/bulk-delete-posts-by-title.php:398
|
2017 |
#: tmp_addon/bulk-delete-posts-by-user-role.php:322
|
2018 |
#: tmp_addon/bulk-delete-posts-by-user.php:335
|
2373 |
msgid "last"
|
2374 |
msgstr ""
|
2375 |
|
2376 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:157
|
2377 |
+
msgid "Search Posts that are not published yet"
|
2378 |
+
msgstr ""
|
2379 |
+
|
2380 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:178
|
2381 |
msgid " duplicate titles."
|
2382 |
msgstr ""
|
2383 |
|
2384 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:240
|
2385 |
msgid "Sorry something went wrong. Kindly try again."
|
2386 |
msgstr ""
|
2387 |
|
2388 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:256
|
2389 |
msgid ""
|
2390 |
"Posts with duplicate title matching the selected settings are scheduled for "
|
2391 |
"deletion."
|
2392 |
msgstr ""
|
2393 |
|
2394 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:261
|
2395 |
#: tmp_addon/bulk-delete-posts-by-title.php:255
|
2396 |
msgid "Deleted %d post using the selected title condition"
|
2397 |
msgid_plural "Deleted %d posts using the selected title condition"
|
2398 |
msgstr[0] ""
|
2399 |
msgstr[1] ""
|
2400 |
|
2401 |
+
#: tmp_addon/bulk-delete-posts-by-duplicate-title.php:348
|
2402 |
msgid ""
|
2403 |
"Are you sure you want to delete all the posts that have duplicate title?"
|
2404 |
msgstr ""
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: sudar
|
3 |
Tags: mass, bulk, delete, post, comment, draft, revision, page, user, meta fields
|
4 |
Requires at least: 3.9
|
5 |
-
Tested up to: 4.3
|
6 |
Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
|
7 |
-
Stable tag: 5.5.
|
8 |
|
9 |
Bulk delete posts, pages, users, attachments and meta fields based on different conditions and filters.
|
10 |
|
2 |
Contributors: sudar
|
3 |
Tags: mass, bulk, delete, post, comment, draft, revision, page, user, meta fields
|
4 |
Requires at least: 3.9
|
5 |
+
Tested up to: 4.3.1
|
6 |
Donate Link: http://sudarmuthu.com/if-you-wanna-thank-me
|
7 |
+
Stable tag: 5.5.2
|
8 |
|
9 |
Bulk delete posts, pages, users, attachments and meta fields based on different conditions and filters.
|
10 |
|