Don't use `<code>` in translatable strings in `wp-admin/includes/class-wp-plugins-list-table.php`.
Add translator commments. Props ramiy. Fixes #34498. Built from https://develop.svn.wordpress.org/trunk@35440 git-svn-id: http://core.svn.wordpress.org/trunk@35404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1c21783283
commit
58db99b512
|
@ -448,9 +448,15 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||||
if ( 'recently_activated' == $status ) {
|
if ( 'recently_activated' == $status ) {
|
||||||
submit_button( __( 'Clear List' ), 'button', 'clear-recent-list', false );
|
submit_button( __( 'Clear List' ), 'button', 'clear-recent-list', false );
|
||||||
} elseif ( 'top' === $which && 'mustuse' === $status ) {
|
} elseif ( 'top' === $which && 'mustuse' === $status ) {
|
||||||
echo '<p>' . sprintf( __( 'Files in the <code>%s</code> directory are executed automatically.' ), str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) ) . '</p>';
|
/* translators: %s: mu-plugins directory name */
|
||||||
|
echo '<p>' . sprintf( __( 'Files in the %s directory are executed automatically.' ),
|
||||||
|
'<code>' . str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) . '</code>'
|
||||||
|
) . '</p>';
|
||||||
} elseif ( 'top' === $which && 'dropins' === $status ) {
|
} elseif ( 'top' === $which && 'dropins' === $status ) {
|
||||||
echo '<p>' . sprintf( __( 'Drop-ins are advanced plugins in the <code>%s</code> directory that replace WordPress functionality when present.' ), str_replace( ABSPATH, '', WP_CONTENT_DIR ) ) . '</p>';
|
/* translators: %s: wp-content directory name */
|
||||||
|
echo '<p>' . sprintf( __( 'Drop-ins are advanced plugins in the %s directory that replace WordPress functionality when present.' ),
|
||||||
|
'<code>' . str_replace( ABSPATH, '', WP_CONTENT_DIR ) . '</code>'
|
||||||
|
) . '</p>';
|
||||||
}
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
|
@ -522,7 +528,11 @@ class WP_Plugins_List_Table extends WP_List_Table {
|
||||||
$description = '<p><strong>' . $dropins[ $plugin_file ][0] . '</strong></p>';
|
$description = '<p><strong>' . $dropins[ $plugin_file ][0] . '</strong></p>';
|
||||||
} else {
|
} else {
|
||||||
$is_active = false;
|
$is_active = false;
|
||||||
$description = '<p><strong>' . $dropins[ $plugin_file ][0] . ' <span class="error-message">' . __('Inactive:') . '</span></strong> ' . sprintf( __( 'Requires <code>%s</code> in <code>wp-config.php</code>.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);" ) . '</p>';
|
$description = '<p><strong>' . $dropins[ $plugin_file ][0] . ' <span class="error-message">' . __( 'Inactive:' ) . '</span></strong> ' .
|
||||||
|
/* translators: %s: drop-in constant name */
|
||||||
|
sprintf( __( 'Requires %s in <code>wp-config.php</code>.' ),
|
||||||
|
"define('" . $dropins[ $plugin_file ][1] . "', true);"
|
||||||
|
) . '</p>';
|
||||||
}
|
}
|
||||||
if ( $plugin_data['Description'] )
|
if ( $plugin_data['Description'] )
|
||||||
$description .= '<p>' . $plugin_data['Description'] . '</p>';
|
$description .= '<p>' . $plugin_data['Description'] . '</p>';
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-beta2-35439';
|
$wp_version = '4.4-beta2-35440';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue