Ticket #22306: 22306.patch
| File 22306.patch, 6.3 KB (added by pavelevap, 7 months ago) |
|---|
-
wp-admin/update.php
90 90 } elseif ( 'install-plugin' == $action ) { 91 91 92 92 if ( ! current_user_can('install_plugins') ) 93 wp_die( __('You do not have sufficient permissions to install plugins for this site.'));93 wp_die( __( 'You do not have sufficient permissions to install plugins on this site.' ) ); 94 94 95 95 include_once ABSPATH . 'wp-admin/includes/plugin-install.php'; //for plugins_api.. 96 96 … … 121 121 } elseif ( 'upload-plugin' == $action ) { 122 122 123 123 if ( ! current_user_can('install_plugins') ) 124 wp_die( __('You do not have sufficient permissions to install plugins for this site.'));124 wp_die( __( 'You do not have sufficient permissions to install plugins on this site.' ) ); 125 125 126 126 check_admin_referer('plugin-upload'); 127 127 … … 194 194 } elseif ( 'install-theme' == $action ) { 195 195 196 196 if ( ! current_user_can('install_themes') ) 197 wp_die( __('You do not have sufficient permissions to install themes for this site.'));197 wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) ); 198 198 199 199 include_once ABSPATH . 'wp-admin/includes/theme-install.php'; //for themes_api.. 200 200 … … 224 224 } elseif ( 'upload-theme' == $action ) { 225 225 226 226 if ( ! current_user_can('install_themes') ) 227 wp_die( __('You do not have sufficient permissions to install themes for this site.'));227 wp_die( __( 'You do not have sufficient permissions to install themes on this site.' ) ); 228 228 229 229 check_admin_referer('theme-upload'); 230 230 -
wp-includes/default-widgets.php
844 844 $show_date = (int) $show_date; 845 845 846 846 if ( !$rss->get_item_quantity() ) { 847 echo '<ul><li>' . __( 'An error has occurred ; the feed is probablydown. Try again later.' ) . '</li></ul>';847 echo '<ul><li>' . __( 'An error has occurred, which probably means the feed is down. Try again later.' ) . '</li></ul>'; 848 848 $rss->__destruct(); 849 849 unset($rss); 850 850 return; -
wp-includes/ms-functions.php
1676 1676 if ( empty( $details ) || is_wp_error( add_existing_user_to_blog( $details ) ) ) 1677 1677 wp_die( sprintf(__('An error occurred adding you to this site. Back to the <a href="%s">homepage</a>.'), home_url() ) ); 1678 1678 1679 wp_die( sprintf( __('You have been added to this site. Please visit the <a href="%s">homepage</a> or <a href="%s">log in</a> using your username and password.'), home_url(), admin_url() ), __('Success') );1679 wp_die( sprintf( __( 'You have been added to this site. Please visit the <a href="%s">homepage</a> or <a href="%s">log in</a> using your username and password.' ), home_url(), admin_url() ), __( 'WordPress › Success' ) ); 1680 1680 } 1681 1681 1682 1682 /** -
wp-includes/ms-load.php
234 234 235 235 wp_load_translations_early(); 236 236 237 $title = __( 'Error establishing database connection' );237 $title = __( 'Error establishing a database connection' ); 238 238 $msg = '<h1>' . $title . '</h1>'; 239 239 if ( ! is_admin() ) 240 240 die( $msg ); 241 241 $msg .= '<p>' . __( 'If your site does not display, please contact the owner of this network.' ) . ''; 242 242 $msg .= ' ' . __( 'If you are the owner of this network please check that MySQL is running properly and all tables are error free.' ) . '</p>'; 243 243 if ( false && !$wpdb->get_var( "SHOW TABLES LIKE '$wpdb->site'" ) ) 244 $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>';244 $msg .= '<p><strong>' . __( 'Database tables are missing.' ) . '</strong> ' . sprintf( __( '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>'; 245 245 else 246 246 $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>'; 247 247 $msg .= '<p><strong>' . __( 'What do I do now?' ) . '</strong> '; -
wp-includes/wp-db.php
1142 1142 1143 1143 if ( !$this->dbh ) { 1144 1144 wp_load_translations_early(); 1145 $this->bail( sprintf( __( " 1146 <h1>Error establishing a database connection</h1> 1145 $this->bail( '<h1>' . __( 'Error establishing a database connection' ) . '</h1>' . sprintf( __( " 1147 1146 <p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or we can't contact the database server at <code>%s</code>. This could mean your host's database server is down.</p> 1148 1147 <ul> 1149 1148 <li>Are you sure you have the correct username and password?</li> -
wp-signup.php
427 427 $newblog = get_blogaddress_by_name( $newblogname ); 428 428 429 429 if ( $active_signup == 'blog' || $active_signup == 'all' ) 430 printf( __( '<p><em>The site you were looking for, <strong>%s</strong> does not exist, but you can create it now!</em></p>' ), $newblog );430 printf( '<p><em>' . __( 'The site you were looking for, <strong>%s</strong> does not exist, but you can create it now!' ) . '</p></em>', $newblog ); 431 431 else 432 printf( __( '<p><em>The site you were looking for, <strong>%s</strong>, does not exist.</em></p>' ), $newblog );432 printf( '<p><em>' . __( 'The site you were looking for, <strong>%s</strong>, does not exist.' ) . '</p></em>', $newblog ); 433 433 } 434 434 break; 435 435 }
