Closed dingo-d closed 5 years ago
Note to self: This PR needs to be updated:
WordPress.WP.PostsPerPage
sniff and add a warning if users use -1
as a value in posts_per_page
argument@jrfnl I've extended the PPP sniff from WPCS and added a notice for disabling pagination (setting posts_per_page
to -1
).
EDIT: Sorry for pinging you @jrfnl but any chance this could get sorted before WCEU? 🙂
As noted in the issue #147 there was an agreement in the meeting to use the posts per page sniff, but that the ruleset should throw a warning instead of an error.