WordPress.org

Make WordPress Core

Changeset 14275


Ignore:
Timestamp:
04/28/10 07:40:49 (4 years ago)
Author:
nacin
Message:

Better DNS error message in network.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/schema.php

    r14189 r14275  
    757757        if ( ! $vhost_ok ) { 
    758758            $msg = '<p><strong>' . __( 'Warning! Wildcard DNS may not be configured correctly!' ) . '</strong></p>'; 
    759             $msg .= '<p>' . sprintf( __( 'To use a subdomain configuration, you must have a wildcard entry in your DNS. The installer attempted to contact a random hostname (<code>%1$s</code>) on your domain.' ), $hostname ); 
     759            $msg .= '<p>' . sprintf( __( 'The installer attempted to contact a random hostname (<code>%1$s</code>) on your domain.' ), $hostname ); 
    760760            if ( ! empty ( $errstr ) ) 
    761                 $msg .= ' ' . sprintf( __( 'This resulted in an error message: %s' ), $errstr ); 
     761                $msg .= ' ' . sprintf( __( 'This resulted in an error message: %s' ), '<code>' . $errstr . '</code>' ); 
    762762            $msg .= '</p>'; 
    763             $msg .= '<p>' . __( 'If you want to host sites in the form of <code>http://site1.example.com</code> then you must add a wildcard record to your DNS records. This usually means adding a <code>*</code> hostname record pointing at your web server in your DNS configuration tool.' ) . '</p>'; 
     763            $msg .= '<p>' . _e( 'To use a subdomain configuration, you must have a wildcard entry in your DNS. This usually means adding a <code>*</code> hostname record pointing at your web server in your DNS configuration tool.' ) . '</p>'; 
    764764            $msg .= '<p>' . __( 'You can still use your site but any subdomain you create may not be accessible. If you know your DNS is correct, ignore this message.' ) . '</p>'; 
    765765            return new WP_Error( 'no_wildcard_dns', $msg ); 
Note: See TracChangeset for help on using the changeset viewer.