Make WordPress Core

Ticket #37802: 37802.patch

File 37802.patch, 2.9 KB (added by ramiy, 7 years ago)
  • wp-includes/functions.php

     
    14111411                wp_load_translations_early();
    14121412
    14131413                // Die with a DB error.
    1414                 $wpdb->error = sprintf( __( 'One or more database tables are unavailable. The database may need to be <a href="%s">repaired</a>.' ), 'maint/repair.php?referrer=is_blog_installed' );
     1414                $wpdb->error = sprintf(
     1415                        /* translators: %s: database repair URL */
     1416                        __( 'One or more database tables are unavailable. The database may need to be <a href="%s">repaired</a>.' ),
     1417                        'maint/repair.php?referrer=is_blog_installed'
     1418                );
     1419
    14151420                dead_db();
    14161421        }
    14171422
     
    18951900                                        $error_path = basename( $uploads['basedir'] ) . $uploads['subdir'];
    18961901                                }
    18971902
    1898                                 $uploads['error'] = sprintf( __( 'Unable to create directory %s. Is its parent directory writable by the server?' ), esc_html( $error_path ) );
     1903                                $uploads['error'] = sprintf(
     1904                                        /* translators: %s: directory path */
     1905                                        __( 'Unable to create directory %s. Is its parent directory writable by the server?' ),
     1906                                        esc_html( $error_path )
     1907                                );
    18991908                        }
    19001909
    19011910                        $tested_paths[ $path ] = $uploads['error'];
     
    21572166                else
    21582167                        $error_path = basename( $upload['basedir'] ) . $upload['subdir'];
    21592168
    2160                 $message = sprintf( __( 'Unable to create directory %s. Is its parent directory writable by the server?' ), $error_path );
     2169                $message = sprintf(
     2170                        /* translators: %s: directory path */
     2171                        __( 'Unable to create directory %s. Is its parent directory writable by the server?' ),
     2172                        $error_path
     2173                );
    21612174                return array( 'error' => $message );
    21622175        }
    21632176
     
    25162529 */
    25172530function wp_nonce_ays( $action ) {
    25182531        if ( 'log-out' == $action ) {
    2519                 $html = sprintf( __( 'You are attempting to log out of %s' ), get_bloginfo( 'name' ) ) . '</p><p>';
     2532                $html = sprintf(
     2533                        /* translators: %s: site name */
     2534                        __( 'You are attempting to log out of %s' ),
     2535                        get_bloginfo( 'name' )
     2536                );
     2537                $html .= '</p><p>';
    25202538                $redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
    2521                 $html .= sprintf( __( "Do you really want to <a href='%s'>log out</a>?"), wp_logout_url( $redirect_to ) );
     2539                $html .= sprintf(
     2540                        /* translators: %s: logout URL */
     2541                        __( 'Do you really want to <a href="%s">log out</a>?' ),
     2542                        wp_logout_url( $redirect_to )
     2543                );
    25222544        } else {
    25232545                $html = __( 'Are you sure you want to do this?' );
    25242546                if ( wp_get_referer() )
     
    39904012         */
    39914013        if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true ) ) {
    39924014                if ( function_exists( '__' ) ) {
     4015                        /* translators: %s: version number */
    39934016                        $version = is_null( $version ) ? '' : sprintf( __( '(This message was added in version %s.)' ), $version );
    39944017                        /* translators: %s: Codex URL */
    39954018                        $message .= ' ' . sprintf( __( 'Please see <a href="%s">Debugging in WordPress</a> for more information.' ),