Digital Sovereignty for everyone

Changelog

  • 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.

If you like this plugin please consider making a donation to further development

Install LHero.org

lhero.org

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu â‹®.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.