PressForward / pressforward

PressForward is a free plugin that provides an editorial workflow for content aggregation and curation within the WordPress dashboard. It is designed for bloggers and editorial teams who wish to collect, discuss, and share content from a variety of sources on the open web.
GNU Affero General Public License v3.0
120 stars 22 forks source link

Subsequent Reader pages loaded by infiniteScroll are not properly initialized for modals #1154

Closed boonebgorges closed 1 year ago

boonebgorges commented 1 year ago

When you load page 2+ using infiniteScroll, PF's Modal setup actions are never called. This is because the callback technique used at https://github.com/PressForward/pressforward/blob/addd555f538b274e36b1c4026ae642ce1bcd7866/assets/js/scroll-imp.js#L19 is not supported after version 3.0 of jquery.infinitescroll, and the library was updated in https://github.com/PressForward/pressforward/commit/8b41f2f56f6643da56d23b60de2156417524cb37 as part of a security review.