In version 2.10.0 template validation was added to the post loop widget. We had been using the siteorigin_panels_postloop_templates filter to add templates in from a plugin which no longer works because the locate_template function being used only looks in the STYLESHEETPATH, TEMPLATEPATH, and ABSPATH . WPINC . ‘/theme-compat/’ directories. Can this portion of the code be removed or a filter be added after the validation to allow us to bypass it? The other validation makes sense, only PHP files and the file must exist, but I don’t see any reason why we couldn’t load templates from a plugin. Our use case doesn’t allow us to add these templates into our theme.
Thanks,
Josh
Hi Josh
Sorry about this, it wasn’t intentional. We’ll come back to you in the next couple of days with the way forward.
Hi Josh, we’re working the problem here. I can’t say that the changes will be exactly the same once reviewed but I can say that the pull request is functional. If you’d like me to build you a copy of Page Builder with this pull request (fix) included so you can make use of it right away, please, let me know.
Please, read my reply here on the forum, a sentence didn’t make sense, I’ve corrected it here. Thanks.
Hi Andrew, thank you for the quick fix. If the next update to Page Builder will be released soon we can wait until then.
Thanks,
Josh
Hi Josh
I don’t have an exact date on the next release but I am pushing for it to be as soon as possible. I’ll keep you updated. If you need a beta build in the meantime, please, let me know.
Hi Josh
Please, can you try today’s update and let us know how it goes. We have a report of concern here but aren’t able to replicate yet, we’ll have to investigate the site in question’s setup in more detail.
I’ve updated the Post Loop documentation Page: Post Loop Widget.
Hi Andrew, the latest version seems to be working properly. Thank you.
Super, glad to hear all is normal again. Thanks for the update :)