class.Apply.php breaks multiple loops

in Download Manager Free

Viewing 1 post (of 1 total)
Jun 21, 2016 at 9:24 pm
#46704
Member
mleis
OP

Hi,

some time ago I encountered a problem I haven’t been able to nail down until now. A second loop in my WP-theme was suddenly returning wrong posts. I have now realized that reason is found in the class.Apply.php of Download Manager.

add_filter('pre_get_posts', array($this, 'queryTag'));

alters my query as soon as you search for posts with specific tags on the site. I’ve removed the line from the file, and suddenly everything is working again.

I believe Download Manager isn’t meant to alter post queries in templates.

Otherwise it’s an awesome plugin. Thank you for your work.

Markus

Viewing 1 post (of 1 total)

The topic "class.Apply.php breaks multiple loops" is closed to new replies.