Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#41681 closed defect (bug) (fixed)

i18n: Avoid using HTML tags in translation strings (wp-admin/includes/meta-boxes.php)

Reported by: ramiy Owned by: SergeyBiryukov
Priority: normal Milestone: 4.9
Component: I18N Version:
Severity: normal Keywords: has-patch
Cc: Focuses: administration

Description

This patch removes HTML <b> tags from translation strings.

Replacing: Uploaded on: <b>%1$s</b>

With: Uploaded on: %s

The patch also rewrites the code abandoning the $datef and $stamp parameters. They are only used once. We don't need to declare them, we can do the same without declaring those params.

Attachments (2)

41681.png​ (6.0 KB ) - added by ramiy 9 years ago.
41681.patch​ (1.1 KB ) - added by ramiy 9 years ago.

Download all attachments as: .zip

Change History (5)

#1 @ramiy
9 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
9 years ago

  • Milestone Awaiting Review → 4.9
  • Owner set to SergeyBiryukov
  • Status new → reviewing

#3 @SergeyBiryukov
9 years ago

  • Resolution → fixed
  • Status reviewing → closed

In 41910:

I18N: Remove <b> tag from a translatable string in post_submit_meta_box().

Props ramiy.
Fixes #41681.

Note: See TracTickets for help on using tickets.