- 1.7.2: Register the front-end script module with fetchpriority low. As a module in the head it was fetched at High priority and showed up in Lighthouse's network dependency tree, though it only adds a click listener (logged out) or resumes a pending like (logged in). The idb-keyval modulepreload now drops to low as well when no other dependent asks for more. Ignored on WordPress before 6.9.
- 1.7.1: Posts in any publicly viewable status can be liked again, not only published ones: 1.7.0 refused likes on archived posts, which on sites using the archive status is most posts. Uses core's is_post_publicly_viewable().
- 1.7.0: Security fixes and a new like-after-login flow. Likes are never added by a GET request any more: the old logged-out link carried a nonce that was not tied to any user and added the like on return, so a link or prefetcher could like posts for a signed-in member. The logged-out Like link is now the same for every visitor (cache-safe). Tapping it stores the pending like in the browser (IndexedDB via idb-keyval, expiring after 15 minutes); after login, on that post, the like is sent to the REST API and the button shows Liked with a brief Undo. Without JavaScript the post shows a highlighted Confirm your like button instead. Unlike now removes the like and its activity item; previously it deleted the wrong BuddyPress activity and left the like in place. The REST like and unlike routes now check permission properly (permission_callback was a boolean evaluated at registration), only accept published posts, return the like count, and unlike actually works. Form actions, links and labels are escaped and translatable, the current URL no longer comes from the Host header, and the stored IP no longer trusts X-Forwarded-For. Like and Unlike forms redirect back after posting so a reload doesn't resubmit. Adds Requires Plugins: buddypress, Requires at least: 6.7 and a proper License header, and uses LH idb-keyval when active, with a bundled fallback copy otherwise.
- 1.6.2: Fixes PHP warnings. Like activities now take the post type label from the liked post instead of an undefined variable, and are skipped if that post type is no longer registered. Like and unlike requests with a missing action or nonce, such as a bare link followed by a crawler, are now ignored instead of reading form fields that are not there.
- 1.6.1: Like counts and comment counts now work on pages that use a block template. Block templates render before the page head and before wp_body_open, so the two filters that were only added on wp_body_open never ran there: the like count after the content was missing, and comment counts included likes, which are stored as comments. Both filters are now added before the page renders and act only in the page body: after the body opens in classic and PHP templates, as before, or while a block template renders its markup. Content and counts used in the page head, or by other plugins before the template renders, are unchanged, and feeds are not filtered. Lh-tasks #149193.
- 1.6.0: Adds a Like button block (lh-buddypress-post-likes/like-button) for block themes and block templates. It shows the same Like or Unlike control as return_like_unlike_method() for the post it is placed in, for example inside a Query Loop's post template or a single post template, wrapped in the span.like-form that themes already style, so a theme can put it in a post's footer without calling the plugin's PHP. Logged-in visitors get the Like or Unlike button; logged-out visitors get a Like link that asks them to log in first. It renders nothing on BuddyPress directory pages or when there is no post. It has no settings; in the editor it shows a static Like placeholder.
- 1.05: Last release before the plugin moved onto the portfolio changelog; earlier version history was not recorded. At this version members could like posts, with each like stored as a like comment, recorded in the BuddyPress activity stream, shown as a count with the post content, and left out of the comment count and comment emails; logged-out visitors got a Like link that completes the like after logging in.