v2.4.0 Latest
New
- The Partial Protection tab now warns you when Full Protection is on and its rules are not being applied, and confirms your settings are still saved.
Improve
- Removed the silent 1,000-page cap that stopped slug matching on large sites.
- The redirect-page picker and the add-all-pages tool no longer query every published page, and no longer issue one query per page. Both limits are filterable.
- Locked-page filtering runs only on search, feed, REST and sitemap queries. It previously ran on every query on the site and discarded the result.
- Pages locked by ID in old versions are turned into Protected URL rules once, on update, and the settings migrations no longer run on every page load.
- The login form on the members-only screen is a real form: Enter logs you in, password managers fill it, and you return to the page you asked for, including through the sign in link.
- The members-only screen's Create an account link opens the BuddyPress registration page, so activation emails, required profile fields and anti-spam or captcha checks all apply. The in-place Register tab that skipped them is gone.
Fix
- Pages chosen in the old Pages list (versions before 2.0) are moved to Protected URLs when you update, so they are locked again; recent versions had left them public.
- Saving the Partial Protection tab no longer switches Full Protection off.
- Locking Groups or Activity no longer locks members whose username contains "groups" or "activity", and locking Members no longer locks a group's Members tab.
- The members-only screen no longer shows the locked member's or page's name in the browser tab title.
- Upgrades from pre-2.0 no longer lose the locked-page list. The migration wrote it to the wrong option, and the runtime read a key that was never populated. Misplaced lists are recovered automatically.
- Stopped defining BuddyPress's BP_ENABLE_MULTIBLOG and BP_ROOT_BLOG constants, which pinned multisite installs to root blog 1 with multiblog disabled.
- Settings screens no longer misread a missing settings record as a value, which could cause notices on a fresh install.
- Corrected the installation instructions, which pointed to Settings instead of WB Plugins, and the documentation links, which returned 404 for everyone.
- The members-only login screen now uses your theme's colours in light and dark mode on BuddyX, BuddyX Pro and Reign, and its messages use the standard BuddyPress notice style.
- Protecting a page now works even when that page is also saved as the redirect page; it stayed public under Show Login Form and Show Custom Content.
- Removed the Share Feedback link from the Welcome tab, because the page it pointed to no longer exists.
- Renamed an admin template file whose name made some hosting firewalls block the plugin upload.
- The members-only screen no longer shows the locked page's text in its meta description (Yoast SEO and Rank Math) or its title in a comments feed link or member and group activity RSS feed link, so search snippets and chat previews stay neutral.
Security
- Pages locked with Protected URLs are no longer readable through the REST API, REST lists, RSS feeds or XML sitemaps.
- BuddyPress activity RSS feeds (site-wide, member, group, favorites and mentions) are now blocked for logged-out visitors when Activity, Members or Groups is locked, and always under Full Protection.
- With Site Wide Activity locked, logged-out visitors no longer see activity on group pages, profiles or widgets.
- The users sitemap is closed while Members is locked.
- Failed lock-screen logins are counted per visitor IP and username, so nobody can lock a member out from elsewhere, and the login request now always requires a valid security token.
- Locked pages are now removed from site search results. Locked URLs were resolved by comparing a full path against a page slug, so no nested page ever matched and wildcard rules were skipped entirely. A locked page kept its title, URL and excerpt in search results for logged-out visitors even though opening it was correctly blocked.
- Whitelist entries now match on path boundaries instead of substrings. Whitelisting "secret" also made "/secret-area/payroll/" public, and a one-letter entry exposed the whole site.
- A whitelist entry of "/" no longer un-protects your XML sitemap or feeds. WordPress treats sitemap requests as the front page, so under Full Protection the front-page rule exposed /wp-sitemap.xml.
- Locking a page by ID no longer also locks unrelated pages whose URL happens to contain its slug, so locking "about" no longer locks "/about-us-blog/".
- On a fresh install the Partial Protection tab showed no components ticked while the site actually locked members, groups and activity. The tab and the site now read the same setting.
- The members-only screen no longer names the hidden member, group or page in shared link previews: Activity Share, Yoast SEO and Rank Math social tags and schema are turned off there, and the screen is marked noindex.
- Added the missing direct-access guards to five PHP files.
Dev
- Requires PHP 8.1. Removed the Grunt build, the WordPress Plugin Boilerplate loader and core classes, the Bp_Lock_Globals class and the $bplock global, the review notice, the Discover tab, the uninstall stub, Font Awesome (about 1 MB) and the lock-screen Register tab with its bplock_register AJAX action, bp_lock_after_register_form action and bplock_register_success_message filter. Releases are built with bin/build-release.sh and translations with wp i18n make-pot.
- Lock decisions for templates, search, REST, feeds and sitemaps now share one check, and component locks follow BuddyPress routing instead of matching URL text.
- Added bplock_filter_search_results, bplock_get_all_pages_limit and bplock_redirect_page_limit filters.
- All allow and deny matching now runs through one Bp_Lock_Url_Matcher class so the two lists cannot drift apart again.
- The add-all-pages AJAX response is now an object with urls, truncated and limit. The previous bare array is still accepted by the bundled script.
Compat
- Tested up to WordPress 7.1.