From 58db99b512dd64efd54fac59543446c9b5d3ba35 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 30 Oct 2015 01:08:25 +0000 Subject: [PATCH] Don't use `` 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 --- .../includes/class-wp-plugins-list-table.php | 16 +++++++++++++--- wp-includes/version.php | 2 +- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/wp-admin/includes/class-wp-plugins-list-table.php b/wp-admin/includes/class-wp-plugins-list-table.php index 43dcc6ea5a..ea64b88fb6 100644 --- a/wp-admin/includes/class-wp-plugins-list-table.php +++ b/wp-admin/includes/class-wp-plugins-list-table.php @@ -448,9 +448,15 @@ class WP_Plugins_List_Table extends WP_List_Table { if ( 'recently_activated' == $status ) { submit_button( __( 'Clear List' ), 'button', 'clear-recent-list', false ); } elseif ( 'top' === $which && 'mustuse' === $status ) { - echo '

' . sprintf( __( 'Files in the %s directory are executed automatically.' ), str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) ) . '

'; + /* translators: %s: mu-plugins directory name */ + echo '

' . sprintf( __( 'Files in the %s directory are executed automatically.' ), + '' . str_replace( ABSPATH, '/', WPMU_PLUGIN_DIR ) . '' + ) . '

'; } elseif ( 'top' === $which && 'dropins' === $status ) { - echo '

' . sprintf( __( 'Drop-ins are advanced plugins in the %s directory that replace WordPress functionality when present.' ), str_replace( ABSPATH, '', WP_CONTENT_DIR ) ) . '

'; + /* translators: %s: wp-content directory name */ + echo '

' . sprintf( __( 'Drop-ins are advanced plugins in the %s directory that replace WordPress functionality when present.' ), + '' . str_replace( ABSPATH, '', WP_CONTENT_DIR ) . '' + ) . '

'; } echo ''; } @@ -522,7 +528,11 @@ class WP_Plugins_List_Table extends WP_List_Table { $description = '

' . $dropins[ $plugin_file ][0] . '

'; } else { $is_active = false; - $description = '

' . $dropins[ $plugin_file ][0] . ' ' . __('Inactive:') . ' ' . sprintf( __( 'Requires %s in wp-config.php.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);" ) . '

'; + $description = '

' . $dropins[ $plugin_file ][0] . ' ' . __( 'Inactive:' ) . ' ' . + /* translators: %s: drop-in constant name */ + sprintf( __( 'Requires %s in wp-config.php.' ), + "define('" . $dropins[ $plugin_file ][1] . "', true);" + ) . '

'; } if ( $plugin_data['Description'] ) $description .= '

' . $plugin_data['Description'] . '

'; diff --git a/wp-includes/version.php b/wp-includes/version.php index 4ab2a80dca..3755b07941 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.