WordPress.org

Make WordPress Core

Opened 11 months ago

Closed 11 months ago

Last modified 11 months ago

#37147 closed defect (bug) (fixed)

Avoid HTML in translation string (/wp-admin/maint/repair.php)

Reported by: anilbasnet Owned by: swissspidy
Milestone: 4.6 Priority: normal
Severity: normal Version:
Component: I18N Keywords: has-patch
Focuses: administration Cc:

Description

In /wp-admin/maint/repair.php:

Current:

echo '<p>' . __( 'To allow use of this page to automatically repair database problems, please add the following line to your <code>wp-config.php</code> file. Once this line is added to your config, reload this page.' ) . "</p><p><code>define('WP_ALLOW_REPAIR', true);</code></p>";

This <code>wp-config.php</code> could be moved out of the string.

Attachments (1)

37147.diff (1019 bytes) - added by anilbasnet 11 months ago.

Download all attachments as: .zip

Change History (5)

@anilbasnet
11 months ago

#1 @anilbasnet
11 months ago

  • Keywords has-patch added

Patch added.

#2 @swissspidy
11 months ago

  • Component changed from Database to I18N
  • Milestone changed from Awaiting Review to 4.6

#3 @swissspidy
11 months ago

  • Owner set to swissspidy
  • Resolution set to fixed
  • Status changed from new to closed

In 37858:

I18N: Remove HTML tags from translatable string in wp-admin/maint/repair.php.

Props anilbasnet.
Fixes #37147.

#4 @SergeyBiryukov
11 months ago

In 37948:

I18N: Make the translator comment added in [37858] more explicit and consistent with other similar instances.

See #37147.

Note: See TracTickets for help on using tickets.