Mass Delete end date is not inclusive | Tech. Questions and Support (Eng) | Support Forums

Please consider registering
guest

Log In Register

thirty seven − = thirty four

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —



 

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS Related Topics
Mass Delete end date is not inclusive
Topic Rating: 0Topic Rating: 0Topic Rating: 0Topic Rating: 0Topic Rating: 0 Topic Rating: 0 (0 votes) 
July 3, 2013
3:01 pm
eros
New Member
Forum Posts: 2
Member Since:
July 3, 2013
Offline
1
0

(Wordpress 3.5.2 (and earlier), WP Mass Delete 1.1)

Although the code compares the post_date to the Mass Delete end_date with a
"<=" (if I'm reading it right, at line 127), the posts that match the end_date are not deleted.

Since the ">=" comparison is inclusive for the start_date, I suppose for the end_date that it is set to "midnight" at the start of the date, so all posts would indeed be later.

Is there any way to fix this?

(Also: on line 140, "<\strong>" should be "<\/strong>"?)

July 4, 2013
8:44 am
admin
Admin
Forum Posts: 1497
Member Since:
July 1, 2009
Offline

I see. Seems the problem is in " 00:00:00'" part which adds the time to defined date. So the line 127 should be changed like this:

$query .= " AND post_date <= '" . $_POST ['end_date'] . " 23:59:59'";

"<\strong>" in line 140 must be changed to "</strong>".

Thanks for heads up sf-thumbup

July 4, 2013
1:44 pm
eros
New Member
Forum Posts: 2
Member Since:
July 3, 2013
Offline
3
0

Thank you for the prompt reply! I'm off to a funeral for a few days so will try this when I get back.

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 67

Currently Online:
9 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

smyk78: 100

cyber1: 76

tonyparra: 70

Downloadz Portal: 61

andreich: 53

Renaldo: 44

Member Stats:

Guest Posters: 32

Members: 428

Moderators: 0

Admins: 1

Forum Stats:

Groups: 3

Forums: 6

Topics: 592

Posts: 3079

Newest Members: Lukak, giorjoe, nettrust, muusika, nikita, ryan40211

Administrators: admin (1497)

Join the mailing list

Check your email and confirm the subscription

.