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

Fix for #352 #381

Merged
merged 2 commits into from
Apr 1, 2014
Merged

Fix for #352 #381

merged 2 commits into from
Apr 1, 2014

Conversation

desaiuditd
Copy link
Contributor

User count displayed on tooltip in front of roles on Exclude settings page.

$args = array( 'id' => $key, 'text' => $role );
$users = get_users( array( 'role' => $key ) );
if ( count( $users ) ) {
$args['user_count'] = count( $users ) . ' ' . __( 'users' );
Copy link
Contributor

Choose a reason for hiding this comment

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

@desaiuditd I think we should use _n() for this. Also, the text domain is missing.

 sprintf( _n( '1 user', '%s users', count( $users ), 'stream' ), count( $users ) );

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh yeah, I missed it.
Adding it.

frankiejarrett added a commit that referenced this pull request Apr 1, 2014
@frankiejarrett frankiejarrett merged commit b29c796 into xwp:develop Apr 1, 2014
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.

2 participants