Make WordPress Core


Ignore:
Timestamp:
03/26/2015 03:16:33 PM (9 years ago)
Author:
ocean90
Message:

Remove <code> tags from translatable strings.

Uncomment deprecation notice for get_bloginfo( 'text_direction' ), see [14360].

props ramiy, DrewAPicture.
fixes #30614.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-load.php

    r31657 r31899  
    409409    $query = $wpdb->prepare( "SHOW TABLES LIKE %s", $wpdb->esc_like( $wpdb->site ) );
    410410    if ( ! $wpdb->get_var( $query ) ) {
    411         $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>';
     411        $msg .= '<p>' . sprintf(
     412            /* translators: %s: table name */
     413            __( '<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.' ),
     414            '<code>' . $wpdb->site . '</code>'
     415        ) . '</p>';
    412416    } else {
    413         $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>';
     417        $msg .= '<p>' . sprintf(
     418            /* translators: 1: site url, 2: table name, 3: database name */
     419            __( '<strong>Could not find site %1$s.</strong> Searched for table %2$s in database %3$s. Is that right?' ),
     420            '<code>' . rtrim( $domain . $path, '/' ) . '</code>',
     421            '<code>' . $wpdb->blogs . '</code>',
     422            '<code>' . DB_NAME . '</code>'
     423        ) . '</p>';
    414424    }
    415425    $msg .= '<p><strong>' . __( 'What do I do now?' ) . '</strong> ';
Note: See TracChangeset for help on using the changeset viewer.