#34249 closed defect (bug) (fixed)
Some issues with _doing_it_wrong()
Reported by: | pavelevap | Owned by: | DrewAPicture |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | I18N | Keywords: | has-patch needs-refresh |
Focuses: | Cc: |
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
.
Attachments (2)
Change History (7)
#1
follow-up:
↓ 2
@
9 years ago
- Keywords has-patch needs-refresh added
- Milestone changed from Awaiting Review to 4.4
#2
in reply to:
↑ 1
@
9 years ago
Replying to swissspidy:
+1 for changing
WPAPI-2.0
to4.4.0
. Perhaps in a separate ticket though. (ping @rmccue)
See #34490.
+1 for adding fullstops and removing spaces.
+1 for changing
WPAPI-2.0
to4.4.0
. Perhaps in a separate ticket though. (ping @rmccue)-1 to changing
__FUNCTION__
to'add_shortcode'
Note: The
_doing_it_wrong
for the shortcode was added in [32867] (see #32445).+1 for adding a translator comment to that message you mentioned. In that message,
%s
refers to the database access abstraction class (usuallywpdb
or a class extendingwpdb
).