Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Tag Cloud copy when no terms are found #16098

Merged
merged 1 commit into from
Jun 11, 2019
Merged

Conversation

melchoyce
Copy link
Contributor

@melchoyce melchoyce commented Jun 11, 2019

The current copy when you have no taxonomy terms is technical and unfriendly:

No terms found.

Instead, let's make it a little easier to understand:

Your site doesn’t have any tags, so there’s nothing to display here at the moment.

It updates based on the chosen taxonomy. Props @ryelle for writing the logic and @michelleweber for brainstorming copy with me.

How has this been tested?

I've tested it with both core taxonomies, and new taxonomies provided by a plugin.

Screenshots

Before:

image

After:

image

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.

Fixes #13932.

Before: "No terms found."

After: "Your site doesn’t have any tags, so there’s nothing to display here at the moment."

It updates based on the chosen taxonomy. Props @ryelle for writing the logic and @michelleweber for brainstorming copy with me.
Copy link
Member

@karmatosed karmatosed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@zeldman
Copy link

zeldman commented Jun 11, 2019

I love this. Great job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tag Cloud Widget: Update error message
3 participants