Remove `<code>` tags from translatable strings.
Uncomment deprecation notice for `get_bloginfo( 'text_direction' )`, see [14360]. props ramiy, DrewAPicture. fixes #30614. Built from https://develop.svn.wordpress.org/trunk@31899 git-svn-id: http://core.svn.wordpress.org/trunk@31878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
62c3c1d798
commit
502c70ec99
|
@ -609,7 +609,13 @@ function get_bloginfo( $show = '', $filter = 'raw' ) {
|
|||
switch( $show ) {
|
||||
case 'home' : // DEPRECATED
|
||||
case 'siteurl' : // DEPRECATED
|
||||
_deprecated_argument( __FUNCTION__, '2.2', sprintf( __('The <code>%s</code> option is deprecated for the family of <code>bloginfo()</code> functions.' ), $show ) . ' ' . sprintf( __( 'Use the <code>%s</code> option instead.' ), 'url' ) );
|
||||
_deprecated_argument( __FUNCTION__, '2.2', sprintf(
|
||||
/* translators: 1: 'siteurl'/'home' argument, 2: bloginfo() function name, 3: 'url' argument */
|
||||
__( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s option instead.' ),
|
||||
'<code>' . $show . '</code>',
|
||||
'<code>bloginfo()</code>',
|
||||
'<code>url</code>'
|
||||
) );
|
||||
case 'url' :
|
||||
$output = home_url();
|
||||
break;
|
||||
|
@ -669,7 +675,13 @@ function get_bloginfo( $show = '', $filter = 'raw' ) {
|
|||
$output = str_replace('_', '-', $output);
|
||||
break;
|
||||
case 'text_direction':
|
||||
//_deprecated_argument( __FUNCTION__, '2.2', sprintf( __('The <code>%s</code> option is deprecated for the family of <code>bloginfo()</code> functions.' ), $show ) . ' ' . sprintf( __( 'Use the <code>%s</code> function instead.' ), 'is_rtl()' ) );
|
||||
_deprecated_argument( __FUNCTION__, '2.2', sprintf(
|
||||
/* translators: 1: 'text_direction' argument, 2: bloginfo() function name, 3: is_rtl() function name */
|
||||
__( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s function instead.' ),
|
||||
'<code>' . $show . '</code>',
|
||||
'<code>bloginfo()</code>',
|
||||
'<code>is_rtl()</code>'
|
||||
) );
|
||||
if ( function_exists( 'is_rtl' ) ) {
|
||||
$output = is_rtl() ? 'rtl' : 'ltr';
|
||||
} else {
|
||||
|
|
|
@ -408,9 +408,19 @@ function ms_not_installed() {
|
|||
$msg .= ' ' . __( 'If you are the owner of this network please check that MySQL is running properly and all tables are error free.' ) . '</p>';
|
||||
$query = $wpdb->prepare( "SHOW TABLES LIKE %s", $wpdb->esc_like( $wpdb->site ) );
|
||||
if ( ! $wpdb->get_var( $query ) ) {
|
||||
$msg .= '<p>' . sprintf( __( '<strong>Database tables are missing.</strong> This means that MySQL is not running, WordPress was not installed properly, or someone deleted <code>%s</code>. You really should look at your database now.' ), $wpdb->site ) . '</p>';
|
||||
$msg .= '<p>' . sprintf(
|
||||
/* translators: %s: table name */
|
||||
__( '<strong>Database tables are missing.</strong> This means that MySQL is not running, WordPress was not installed properly, or someone deleted %s. You really should look at your database now.' ),
|
||||
'<code>' . $wpdb->site . '</code>'
|
||||
) . '</p>';
|
||||
} else {
|
||||
$msg .= '<p>' . sprintf( __( '<strong>Could not find site <code>%1$s</code>.</strong> Searched for table <code>%2$s</code> in database <code>%3$s</code>. Is that right?' ), rtrim( $domain . $path, '/' ), $wpdb->blogs, DB_NAME ) . '</p>';
|
||||
$msg .= '<p>' . sprintf(
|
||||
/* translators: 1: site url, 2: table name, 3: database name */
|
||||
__( '<strong>Could not find site %1$s.</strong> Searched for table %2$s in database %3$s. Is that right?' ),
|
||||
'<code>' . rtrim( $domain . $path, '/' ) . '</code>',
|
||||
'<code>' . $wpdb->blogs . '</code>',
|
||||
'<code>' . DB_NAME . '</code>'
|
||||
) . '</p>';
|
||||
}
|
||||
$msg .= '<p><strong>' . __( 'What do I do now?' ) . '</strong> ';
|
||||
$msg .= __( 'Read the <a target="_blank" href="http://codex.wordpress.org/Debugging_a_WordPress_Network">bug report</a> page. Some of the guidelines there may help you figure out what went wrong.' );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.2-beta2-31898';
|
||||
$wp_version = '4.2-beta2-31899';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue