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

"missing text" is not displayed in translation set view #519

yoavf opened this issue Jul 28, 2016 · 1 comment

"missing text" is not displayed in translation set view #519

yoavf opened this issue Jul 28, 2016 · 1 comment


Copy link

@yoavf yoavf commented Jul 28, 2016

wporg examle

This probably happens since 7b103dd - where the array of translations supplied by for_translation() is filtered with gp_is_not_empty_string()

Non translated entries will have an array with two null values. gp_is_not_empty_string returns true for them. A possible solution would be to amend it to

function gp_is_not_empty_string( $value ) {
    return is_string( $value ) && '' !== $value;

... but then the function name would not be semantically correct. Maybe we can rename it to gp_is_string_not_empty

@ocean90 ocean90 added this to the 2.3 milestone Sep 13, 2016
ocean90 added a commit that referenced this issue Sep 27, 2016
Broken since 7b103dd.
Fixes #519.
Copy link

@ocean90 ocean90 commented Sep 27, 2016

@yoavf See #560, instead of using a check for strings we can simply check if the value is null.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants