Rename Subscriptions to Following in the frontend#616
Merged
Conversation
Test this PR in WordPress PlaygroundYou can test this pull request directly in WordPress Playground: This will install and activate the plugin with the changes from this PR. |
Use the more familiar social media terminology "Following" instead of "Subscriptions" across all frontend-facing strings. The new URL /friends/following/ replaces /friends/subscriptions/ (which now redirects for backwards compatibility). Internal identifiers (class names, CSS classes, block names, database values) are unchanged to avoid breaking changes. Refs #596.
Add a /friends/mutual/ route that shows mutual connections (followers you also follow back) with a "Friends" title. Add "Friends" link to the stats widget and block. Improve the followers template with semantic CSS classes (follower-item, follower-link, follower-info, follower-name, follower-handle, follower-meta, follower-actions, etc.) and replace nested dashicons with single clear icons plus text labels (Following/Follow back/Remove). Add an "Unfollow" action button to each subscription on the Following page linking to the existing unfriend flow. Style both followers and subscriptions lists in the Mastodon theme with grid layouts, proper spacing, and action button hover states. Hide the chips/filter area on static pages (following, followers, mutual). Refs #596.
a5711cf to
c80c0db
Compare
Add count_mutual_followers() to Feed_Parser_ActivityPub with 1-hour transient caching. Display the count next to the "Friends" link in both the legacy widget and the Gutenberg stats block.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/friends/following/route;/friends/subscriptions/now redirects for backwards compatibilityTest plan
/friends/following/— shows the following list with "Following" title/friends/subscriptions/— redirects to/friends/following/