May 4, 2011

Mass Delete end date is not inclusive | Freeware Plugins Support | Support Forums

Only registered customers are allowed to post in this forum. For everyone else it is read-only.


Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

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

Related Topics
Mass Delete end date is not inclusive
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
July 3, 2013
3:01 pm

(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
Forum Posts: 2896
Member Since:
July 2, 2009

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:

Login to see the code.

July 4, 2013
1:44 pm

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: Europe/Moscow

Most Users Ever Online: 67

Currently Online:
6 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 64

Freedom: 54

adultdenim: 49

saviulisse67: 45

B8europe: 44

allgoodies: 38

Member Stats:

Guest Posters: 349

Members: 1743

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 5

Topics: 1249

Posts: 6219

Newest Members:

dobrdot, george.hotshower, studioottozero, franck.belly1, nyllover, zaratareklama

Administrators: admin: 2896