Make WordPress Core

Ticket #34619: 34619.patch

File 34619.patch, 1.1 KB (added by ramiy, 11 years ago)
  • wp-admin/includes/upgrade.php

     
    155155        if ( is_multisite() ) {
    156156                $first_post = get_site_option( 'first_post' );
    157157
    158                 if ( empty($first_post) )
    159                         $first_post = __( 'Welcome to <a href="SITE_URL">SITE_NAME</a>. This is your first post. Edit or delete it, then start writing!' );
     158                if ( empty($first_post) ) {
     159                        $first_post = sprintf(
     160                                /* translators: 1: site URL 2: site name */
     161                                __( 'Welcome to <a href="%1$s">%2$s</a>. This is your first post. Edit or delete it, then start writing!' ),
     162                                esc_url( network_home_url() ),
     163                                get_current_site()->site_name
     164                        );
     165                }
    160166
    161                 $first_post = str_replace( "SITE_URL", esc_url( network_home_url() ), $first_post );
    162                 $first_post = str_replace( "SITE_NAME", get_current_site()->site_name, $first_post );
    163167        } else {
    164168                $first_post = __( 'Welcome to WordPress. This is your first post. Edit or delete it, then start writing!' );
    165169        }