Created
June 14, 2018 06:38
-
-
Save jrfnl/0e077ba9c357c3dac29d6b09d8088063 to your computer and use it in GitHub Desktop.
201806 WCEU list of other I18n issues for review
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
FILE: src\wp-admin\credits.php | |
-------------------------------------------------------------------------------------------------------------- | |
FOUND 3 ERRORS AND 3 WARNINGS AFFECTING 3 LINES | |
-------------------------------------------------------------------------------------------------------------- | |
68 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
68 | ERROR | The $text arg must be a single string literal, not "$group_data['name']". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
70 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
70 | ERROR | The $text arg must be a single string literal, not "$group_data['name']". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
103 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
103 | ERROR | The $text arg must be a single string literal, not "$person_data[3]". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
-------------------------------------------------------------------------------------------------------------- | |
FILE: src\wp-admin\includes\import.php | |
-------------------------------------------------------------------------------------------------------------- | |
FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 2 LINES | |
-------------------------------------------------------------------------------------------------------------- | |
169 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
169 | ERROR | The $text arg must be a single string literal, not "$importer['description']". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
171 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
171 | ERROR | The $text arg must be a single string literal, not "$importer['name']". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
-------------------------------------------------------------------------------------------------------------- | |
FILE: src\wp-admin\includes\plugin.php | |
-------------------------------------------------------------------------------------------------------------- | |
FOUND 2 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
-------------------------------------------------------------------------------------------------------------- | |
140 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
140 | ERROR | The $text arg must be a single string literal, not "$plugin_data[$field]". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
140 | ERROR | The $domain arg must be a single string literal, not "$textdomain". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralDomain) | |
-------------------------------------------------------------------------------------------------------------- | |
FILE: src\wp-includes\category-template.php | |
-------------------------------------------------------------------------------------------------------------- | |
FOUND 2 ERRORS AFFECTING 1 LINE | |
-------------------------------------------------------------------------------------------------------------- | |
842 | ERROR | The $single arg must be a single string literal, not "$args['single_text']". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralSingle) | |
842 | ERROR | The $plural arg must be a single string literal, not "$args['multiple_text']". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralPlural) | |
-------------------------------------------------------------------------------------------------------------- | |
FILE: src\wp-includes\class-wp-theme.php | |
-------------------------------------------------------------------------------------------------------------- | |
FOUND 4 ERRORS AND 2 WARNINGS AFFECTING 2 LINES | |
-------------------------------------------------------------------------------------------------------------- | |
865 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
865 | ERROR | The $text arg must be a single string literal, not "$value". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
865 | ERROR | The $domain arg must be a single string literal, not "$this->get( 'TextDomain' )". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralDomain) | |
916 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
916 | ERROR | The $text arg must be a single string literal, not "$value". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
916 | ERROR | The $domain arg must be a single string literal, not "$this->get( 'TextDomain' )". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralDomain) | |
-------------------------------------------------------------------------------------------------------------- | |
FILE: src\wp-includes\functions.php | |
-------------------------------------------------------------------------------------------------------------- | |
FOUND 3 ERRORS AND 3 WARNINGS AFFECTING 3 LINES | |
-------------------------------------------------------------------------------------------------------------- | |
4879 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
4879 | ERROR | The $text arg must be a single string literal, not "str_replace( '_', ' ', $zone[0] )". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
4880 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
4880 | ERROR | The $text arg must be a single string literal, not "str_replace( '_', ' ', $zone[1] )". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
4881 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
4881 | ERROR | The $text arg must be a single string literal, not "str_replace( '_', ' ', $zone[2] )". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
-------------------------------------------------------------------------------------------------------------- | |
FILE: src\wp-includes\l10n.php | |
-------------------------------------------------------------------------------------------------------------- | |
FOUND 32 ERRORS AND 10 WARNINGS AFFECTING 13 LINES | |
-------------------------------------------------------------------------------------------------------------- | |
202 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
202 | ERROR | The $text arg must be a single string literal, not "$text". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
202 | ERROR | The $domain arg must be a single string literal, not "$domain". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralDomain) | |
218 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
218 | ERROR | The $text arg must be a single string literal, not "$text". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
218 | ERROR | The $domain arg must be a single string literal, not "$domain". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralDomain) | |
235 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
235 | ERROR | The $text arg must be a single string literal, not "$text". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
235 | ERROR | The $domain arg must be a single string literal, not "$domain". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralDomain) | |
248 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
248 | ERROR | The $text arg must be a single string literal, not "$text". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
248 | ERROR | The $domain arg must be a single string literal, not "$domain". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralDomain) | |
261 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
261 | ERROR | The $text arg must be a single string literal, not "$text". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
261 | ERROR | The $domain arg must be a single string literal, not "$domain". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralDomain) | |
274 | WARNING | Use of the "translate()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
274 | ERROR | The $text arg must be a single string literal, not "$text". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
274 | ERROR | The $domain arg must be a single string literal, not "$domain". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralDomain) | |
295 | WARNING | Use of the "translate_with_gettext_context()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
295 | ERROR | The $text arg must be a single string literal, not "$text". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
295 | ERROR | The $context arg must be a single string literal, not "$context". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralContext) | |
295 | ERROR | The $domain arg must be a single string literal, not "$domain". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralDomain) | |
310 | ERROR | The $text arg must be a single string literal, not "$text". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
310 | ERROR | The $context arg must be a single string literal, not "$context". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralContext) | |
310 | ERROR | The $domain arg must be a single string literal, not "$domain". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralDomain) | |
325 | WARNING | Use of the "translate_with_gettext_context()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
325 | ERROR | The $text arg must be a single string literal, not "$text". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
325 | ERROR | The $context arg must be a single string literal, not "$context". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralContext) | |
325 | ERROR | The $domain arg must be a single string literal, not "$domain". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralDomain) | |
340 | WARNING | Use of the "translate_with_gettext_context()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
340 | ERROR | The $text arg must be a single string literal, not "$text". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
340 | ERROR | The $context arg must be a single string literal, not "$context". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralContext) | |
340 | ERROR | The $domain arg must be a single string literal, not "$domain". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralDomain) | |
535 | ERROR | The $single arg must be a single string literal, not "$nooped_plural['singular']". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralSingle) | |
535 | ERROR | The $plural arg must be a single string literal, not "$nooped_plural['plural']". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralPlural) | |
535 | ERROR | The $context arg must be a single string literal, not "$nooped_plural['context']". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralContext) | |
535 | ERROR | The $domain arg must be a single string literal, not "$domain". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralDomain) | |
537 | ERROR | The $single arg must be a single string literal, not "$nooped_plural['singular']". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralSingle) | |
537 | ERROR | The $plural arg must be a single string literal, not "$nooped_plural['plural']". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralPlural) | |
537 | ERROR | The $domain arg must be a single string literal, not "$domain". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralDomain) | |
1020 | WARNING | Use of the "translate_with_gettext_context()" function is reserved for low-level API usage. | |
| | (WordPress.WP.I18n.LowLevelTranslationFunction) | |
1020 | ERROR | The $text arg must be a single string literal, not "before_last_bar( $name )". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralText) | |
-------------------------------------------------------------------------------------------------------------- | |
FILE: src\wp-includes\post.php | |
-------------------------------------------------------------------------------------------------------------- | |
FOUND 2 ERRORS AFFECTING 1 LINE | |
-------------------------------------------------------------------------------------------------------------- | |
966 | ERROR | The $single arg must be a single string literal, not "$args->label". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralSingle) | |
966 | ERROR | The $plural arg must be a single string literal, not "$args->label". | |
| | (WordPress.WP.I18n.NonSingularStringLiteralPlural) | |
-------------------------------------------------------------------------------------------------------------- | |
Time: 3 mins, 16.35 secs; Memory: 58Mb | |
PHP CODE SNIFFER REPORT SUMMARY | |
---------------------------------------------------------------------- | |
FILE ERRORS WARNINGS | |
---------------------------------------------------------------------- | |
src\wp-admin\credits.php 3 3 | |
src\wp-admin\includes\import.php 2 2 | |
src\wp-admin\includes\plugin.php 2 1 | |
src\wp-includes\category-template.php 2 0 | |
src\wp-includes\class-wp-theme.php 4 2 | |
src\wp-includes\functions.php 3 3 | |
src\wp-includes\l10n.php 32 10 | |
src\wp-includes\post.php 2 0 | |
---------------------------------------------------------------------- | |
A TOTAL OF 50 ERRORS AND 21 WARNINGS WERE FOUND IN 8 FILES | |
---------------------------------------------------------------------- | |
PHP CODE SNIFFER VIOLATION SOURCE SUMMARY | |
---------------------------------------------------------------------- | |
SOURCE COUNT | |
---------------------------------------------------------------------- | |
WordPress.WP.I18n.NonSingularStringLiteralText 22 | |
WordPress.WP.I18n.LowLevelTranslationFunction 21 | |
WordPress.WP.I18n.NonSingularStringLiteralDomain 15 | |
WordPress.WP.I18n.NonSingularStringLiteralContext 5 | |
WordPress.WP.I18n.NonSingularStringLiteralPlural 4 | |
WordPress.WP.I18n.NonSingularStringLiteralSingle 4 | |
---------------------------------------------------------------------- | |
A TOTAL OF 71 SNIFF VIOLATIONS WERE FOUND IN 6 SOURCES | |
---------------------------------------------------------------------- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment