Ticket #31834: 31834.patch
| File 31834.patch, 4.8 KB (added by , 12 years ago) |
|---|
-
wp-admin/network.php
223 223 <table class="form-table"> 224 224 <tr> 225 225 <th><label><input type="radio" name="subdomain_install" value="1"<?php checked( $subdomain_install ); ?> /> <?php _e( 'Sub-domains' ); ?></label></th> 226 <td><?php printf( _x( 'like <code>site1.%1$s</code> and <code>site2.%1$s</code>', 'subdomain examples' ), $hostname ); ?></td> 226 <td><?php printf( 227 /* translators: 1: hostname. */ 228 _x( 'like <code>site1.%1$s</code> and <code>site2.%1$s</code>', 'subdomain examples' ), 229 $hostname 230 ); ?></td> 227 231 </tr> 228 232 <tr> 229 233 <th><label><input type="radio" name="subdomain_install" value="0"<?php checked( ! $subdomain_install ); ?> /> <?php _e( 'Sub-directories' ); ?></label></th> 230 <td><?php printf( _x( 'like <code>%1$s/site1</code> and <code>%1$s/site2</code>', 'subdirectory examples' ), $hostname ); ?></td> 234 <td><?php printf( 235 /* translators: 1: hostname. */ 236 _x( 'like <code>%1$s/site1</code> and <code>%1$s/site2</code>', 'subdirectory examples' ), 237 $hostname 238 ); ?></td> 231 239 </tr> 232 240 </table> 233 241 -
wp-admin/network/site-new.php
88 88 if ( !is_wp_error( $id ) ) { 89 89 if ( !is_super_admin( $user_id ) && !get_user_option( 'primary_blog', $user_id ) ) 90 90 update_user_option( $user_id, 'primary_blog', $id, true ); 91 $content_mail = sprintf( __( 'New site created by %1$s 91 $content_mail = sprintf( 92 /* translators: 1: user login. 2: site url. 3: site name/title. */ 93 __( 'New site created by %1$s 92 94 93 95 Address: %2$s 94 Name: %3$s' ), $current_user->user_login , get_site_url( $id ), wp_unslash( $title ) ); 96 Name: %3$s' ), 97 $current_user->user_login , 98 get_site_url( $id ), 99 wp_unslash( $title ) 100 ); 95 101 wp_mail( get_site_option('admin_email'), sprintf( __( '[%s] New Site Created' ), $current_site->site_name ), $content_mail, 'From: "Site Admin" <' . get_site_option( 'admin_email' ) . '>' ); 96 102 wpmu_welcome_notification( $id, $user_id, $password, $title, array( 'public' => 1 ) ); 97 103 wp_redirect( add_query_arg( array( 'update' => 'added', 'id' => $id ), 'site-new.php' ) ); … … 104 110 if ( isset($_GET['update']) ) { 105 111 $messages = array(); 106 112 if ( 'added' == $_GET['update'] ) 107 $messages[] = sprintf( __( 'Site added. <a href="%1$s">Visit Dashboard</a> or <a href="%2$s">Edit Site</a>' ), esc_url( get_admin_url( absint( $_GET['id'] ) ) ), network_admin_url( 'site-info.php?id=' . absint( $_GET['id'] ) ) ); 113 $messages[] = sprintf( 114 /* translators: 1: dashboard url. 2: network admin edit url. */ 115 __( 'Site added. <a href="%1$s">Visit Dashboard</a> or <a href="%2$s">Edit Site</a>' ), 116 esc_url( get_admin_url( absint( $_GET['id'] ) ) ), 117 network_admin_url( 'site-info.php?id=' . absint( $_GET['id'] ) ) 118 ); 108 119 } 109 120 110 121 $title = __('Add New Site'); -
wp-admin/network/upgrade.php
66 66 echo "<li>$siteurl</li>"; 67 67 $response = wp_remote_get( $upgrade_url, array( 'timeout' => 120, 'httpversion' => '1.1' ) ); 68 68 if ( is_wp_error( $response ) ) 69 wp_die( sprintf( __( 'Warning! Problem updating %1$s. Your server may not be able to connect to sites running on it. Error message: <em>%2$s</em>' ), $siteurl, $response->get_error_message() ) ); 69 wp_die( 70 sprintf( 71 /* translators: 1: site url. 2: server error_message */ 72 __( 'Warning! Problem updating %1$s. Your server may not be able to connect to sites running on it. Error message: %2$s' ), 73 $siteurl, 74 '<em>' . $response->get_error_message() . '</em>' 75 ) 76 ); 70 77 /** 71 78 * Fires after the Multisite DB upgrade for each site is complete. 72 79 * -
wp-admin/network/users.php
57 57 58 58 if ( ! empty( $blogs ) ) { 59 59 ?> 60 <td><fieldset><p><legend><?php printf( __( 'What should be done with content owned by %s?' ), '<em>' . $delete_user->user_login . '</em>' ); ?></legend></p> 60 <td><fieldset><p><legend><?php printf( 61 /* translators: user login. */ 62 __( 'What should be done with content owned by %s?' ), 63 '<em>' . $delete_user->user_login . '</em>' 64 ); ?></legend></p> 61 65 <?php 62 66 foreach ( (array) $blogs as $key => $details ) { 63 67 $blog_users = get_users( array( 'blog_id' => $details->userblog_id, 'fields' => array( 'ID', 'user_login' ) ) );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)