May 4, 2011

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

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





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

sp_Related Related Topics sp_TopicIcon
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
Avatar
eros
Guest
Guests

(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
Avatar
CyberSEO
Admin
Forum Posts: 3909
Member Since:
July 2, 2009
sp_UserOfflineSmall 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:

Login to see the code

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

Thanks for heads up sf-thumbup

July 4, 2013
1:44 pm
Avatar
eros
Guest
Guests

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/Amsterdam

Most Users Ever Online: 541

Currently Online:
16 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 84

s.baryshev.aoasp: 68

Freedom: 61

Pandermos: 54

MediFormatica: 49

B8europe: 48

Member Stats:

Guest Posters: 337

Members: 2815

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1625

Posts: 8271

Newest Members:

lthompson2709, MAC, duty3canada, backlinkmorocco, dmitrypehovskiwork, lmsdesigns4

Administrators: CyberSEO: 3909