#34249 closed defect (bug) (fixed)
Some issues with _doing_it_wrong()
| Reported by: | pavelevap | Owned by: | DrewAPicture |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | I18N | Version: | 4.4 |
| Severity: | normal | Keywords: | has-patch needs-refresh |
| Cc: | Focuses: |
Description
$message in _doing_it_wrong() function calls should always end with point, because it is part of the whole paragraph, see attached screenshot.
$version in _doing_it_wrong() function calls should always be only WordPress version, because it is part of other sentence This message was added in version %s.
For missing callable function it would be helpfull refering to add_shortcode() instead of do_shortcode_tag(), I guess.
We are also missing some translators comments (not part of current patch). For example %s must set a database connection for use with escaping. is hard for translators when they do not know what is %s.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
+1 for adding fullstops and removing spaces.
+1 for changing
WPAPI-2.0to4.4.0. Perhaps in a separate ticket though. (ping @rmccue)-1 to changing
__FUNCTION__to'add_shortcode'Note: The
_doing_it_wrongfor the shortcode was added in [32867] (see #32445).+1 for adding a translator comment to that message you mentioned. In that message,
%srefers to the database access abstraction class (usuallywpdbor a class extendingwpdb).