Ticket #15887: t15887-Capitalize-ERROR.diff
File t15887-Capitalize-ERROR.diff, 11.1 KB (added by , 13 years ago) |
---|
-
wp-admin/admin-ajax.php
638 638 if ( empty($status) ) 639 639 die('1'); 640 640 elseif ( in_array($status, array('draft', 'pending', 'trash') ) ) 641 die( __(' Error: you are replying to a comment on a draft post.') );641 die( __('<strong>ERROR</strong>: you are replying to a comment on a draft post.') ); 642 642 643 643 $user = wp_get_current_user(); 644 644 if ( $user->ID ) { … … 657 657 } 658 658 659 659 if ( '' == $comment_content ) 660 die( __(' Error: please type a comment.') );660 die( __('<strong>ERROR</strong>: please type a comment.') ); 661 661 662 662 $comment_parent = absint($_POST['comment_ID']); 663 663 $commentdata = compact('comment_post_ID', 'comment_author', 'comment_author_email', 'comment_author_url', 'comment_content', 'comment_type', 'comment_parent', 'user_ID'); … … 704 704 die('-1'); 705 705 706 706 if ( '' == $_POST['content'] ) 707 die( __(' Error: please type a comment.') );707 die( __('<strong>ERROR</strong>: please type a comment.') ); 708 708 709 709 $comment_id = (int) $_POST['comment_ID']; 710 710 $_POST['comment_status'] = $_POST['status']; -
wp-admin/includes/class-ftp.php
323 323 if($this->_ready) return true; 324 324 $this->SendMsg('Local OS : '.$this->OS_FullName[$this->OS_local]); 325 325 if(!($this->_ftp_control_sock = $this->_connect($this->_host, $this->_port))) { 326 $this->SendMSG("E rror: Cannot connect to remote host \"".$this->_fullhost." :".$this->_port."\"");326 $this->SendMSG("ERROR: Cannot connect to remote host \"".$this->_fullhost." :".$this->_port."\""); 327 327 return FALSE; 328 328 } 329 329 $this->SendMSG("Connected to remote host \"".$this->_fullhost.":".$this->_port."\". Waiting for greeting."); -
wp-admin/includes/class-wp-importer.php
125 125 } else { 126 126 $blog = 'http://' . preg_replace( '#^https?://#', '', $blog_id ); 127 127 if ( ( !$parsed = parse_url( $blog ) ) || empty( $parsed['host'] ) ) { 128 fwrite( STDERR, "E rror: can not determine blog_id from $blog_id\n" );128 fwrite( STDERR, "ERROR: can not determine blog_id from $blog_id\n" ); 129 129 exit(); 130 130 } 131 131 if ( empty( $parsed['path'] ) ) 132 132 $parsed['path'] = '/'; 133 133 $blog = get_blog_details( array( 'domain' => $parsed['host'], 'path' => $parsed['path'] ) ); 134 134 if ( !$blog ) { 135 fwrite( STDERR, "E rror: Could not find blog\n" );135 fwrite( STDERR, "ERROR: Could not find blog\n" ); 136 136 exit(); 137 137 } 138 138 $blog_id = (int) $blog->blog_id; … … 157 157 } 158 158 159 159 if ( !$user_id || !wp_set_current_user( $user_id ) ) { 160 fwrite( STDERR, "E rror: can not find user\n" );160 fwrite( STDERR, "ERROR: can not find user\n" ); 161 161 exit(); 162 162 } 163 163 -
wp-admin/includes/file.php
945 945 if ( !empty($credentials) ) 946 946 extract($credentials, EXTR_OVERWRITE); 947 947 if ( $error ) { 948 $error_string = __('<strong>E rror:</strong> There was an error connecting to the server, Please verify the settings are correct.');948 $error_string = __('<strong>ERROR:</strong> There was an error connecting to the server, Please verify the settings are correct.'); 949 949 if ( is_wp_error($error) ) 950 950 $error_string = esc_html( $error->get_error_message() ); 951 951 echo '<div id="message" class="error"><p>' . $error_string . '</p></div>'; -
wp-admin/includes/theme-install.php
237 237 iframe_header( __('Theme Install') ); 238 238 239 239 if ( empty($api->download_link) ) { 240 echo '<div id="message" class="error"><p>' . __('<strong>E rror:</strong> This theme is currently not available. Please try again later.') . '</p></div>';240 echo '<div id="message" class="error"><p>' . __('<strong>ERROR:</strong> This theme is currently not available. Please try again later.') . '</p></div>'; 241 241 iframe_footer(); 242 242 exit; 243 243 } -
wp-admin/install.php
13 13 <html xmlns="http://www.w3.org/1999/xhtml" > 14 14 <head> 15 15 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 16 <title>E rror: PHP is not running</title>16 <title>ERROR: PHP is not running</title> 17 17 </head> 18 18 <body> 19 19 <h1 id="logo"><img alt="WordPress" src="images/wordpress-logo.png" /></h1> 20 <h2> Error: PHP is not running</h2>20 <h2><strong>ERROR<strong>: PHP is not running</h2> 21 21 <p>WordPress requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p> 22 22 </body> 23 23 </html> -
wp-admin/maint/repair.php
47 47 if ( 'OK' == $check->Msg_text ) { 48 48 echo "<br /> Successfully repaired the $table table."; 49 49 } else { 50 echo "<br /> Failed to repair the $table table. Error: $check->Msg_text<br />";50 echo "<br /> Failed to repair the $table table. <strong>ERROR</strong>: $check->Msg_text<br />"; 51 51 $problems["$table"] = $check->Msg_text; 52 52 $okay = false; 53 53 } … … 61 61 if ( 'OK' == $check->Msg_text || 'Table is already up to date' == $check->Msg_text ) 62 62 echo "<br /> Successfully optimized the $table table."; 63 63 else 64 echo "<br /> Failed to optimize the $table table. Error: $check->Msg_text";64 echo "<br /> Failed to optimize the $table table. <strong>ERROR</strong>: $check->Msg_text"; 65 65 } 66 66 } 67 67 echo '</p>'; -
wp-admin/network.php
135 135 global $is_apache; 136 136 137 137 if ( get_option( 'siteurl' ) != get_option( 'home' ) ) { 138 echo '<div class="error"><p><strong>' . __('E rror:') . '</strong> ' . sprintf( __( 'Your <strong>WordPress address</strong> must match your <strong>Site address</strong> before creating a Network. See <a href="%s">General Settings</a>.' ), esc_url( admin_url( 'options-general.php' ) ) ) . '</p></div>';138 echo '<div class="error"><p><strong>' . __('ERROR:') . '</strong> ' . sprintf( __( 'Your <strong>WordPress address</strong> must match your <strong>Site address</strong> before creating a Network. See <a href="%s">General Settings</a>.' ), esc_url( admin_url( 'options-general.php' ) ) ) . '</p></div>'; 139 139 echo '</div>'; 140 140 include ( ABSPATH . 'wp-admin/admin-footer.php' ); 141 141 die(); 142 142 } 143 143 144 144 if ( defined('DO_NOT_UPGRADE_GLOBAL_TABLES') ) { 145 echo '<div class="error"><p><strong>' . __('E rror:') . '</strong> ' . __( 'The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when creating a network.' ) . '</p></div>';145 echo '<div class="error"><p><strong>' . __('ERROR:') . '</strong> ' . __( 'The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when creating a network.' ) . '</p></div>'; 146 146 echo '</div>'; 147 147 include ( ABSPATH . 'wp-admin/admin-footer.php' ); 148 148 die(); … … 159 159 $hostname = get_clean_basedomain(); 160 160 $has_ports = strstr( $hostname, ':' ); 161 161 if ( ( false !== $has_ports && ! in_array( $has_ports, array( ':80', ':443' ) ) ) ) { 162 echo '<div class="error"><p><strong>' . __( 'E rror:') . '</strong> ' . __( 'You cannot install a network of sites with your server address.' ) . '</p></div>';162 echo '<div class="error"><p><strong>' . __( 'ERROR:') . '</strong> ' . __( 'You cannot install a network of sites with your server address.' ) . '</p></div>'; 163 163 echo '<p>' . sprintf( __( 'You cannot use port numbers such as <code>%s</code>.' ), $has_ports ) . '</p>'; 164 164 echo '<a href="' . esc_url( admin_url() ) . '">' . __( 'Return to Dashboard' ) . '</a>'; 165 165 echo '</div>'; -
wp-admin/options.php
106 106 } 107 107 108 108 if ( !isset( $whitelist_options[ $option_page ] ) ) 109 wp_die( __( ' Error: options page not found.' ) );109 wp_die( __( '<strong>ERROR</strong>: options page not found.' ) ); 110 110 111 111 if ( 'options' == $option_page ) { 112 112 if ( is_multisite() && ! is_super_admin() ) -
wp-comments-post.php
75 75 76 76 if ( get_option('require_name_email') && !$user->ID ) { 77 77 if ( 6 > strlen($comment_author_email) || '' == $comment_author ) 78 wp_die( __(' Error: please fill the required fields (name, email).') );78 wp_die( __('<strong>ERROR</strong>: please fill the required fields (name, email).') ); 79 79 elseif ( !is_email($comment_author_email)) 80 wp_die( __(' Error:please enter a valid email address.') );80 wp_die( __('<strong>ERROR</strong:> please enter a valid email address.') ); 81 81 } 82 82 83 83 if ( '' == $comment_content ) 84 wp_die( __(' Error: please type a comment.') );84 wp_die( __('<strong>ERROR</strong>: please type a comment.') ); 85 85 86 86 $comment_parent = isset($_POST['comment_parent']) ? absint($_POST['comment_parent']) : 0; 87 87 -
wp-includes/class-snoopy.php
1016 1016 1017 1017 if($return) 1018 1018 { 1019 $this->error = "E rror: cURL could not retrieve the document, error $return.";1019 $this->error = "ERROR: cURL could not retrieve the document, error $return."; 1020 1020 return false; 1021 1021 } 1022 1022 -
wp-includes/ms-functions.php
314 314 315 315 // Check if the domain has been used already. We should return an error message. 316 316 if ( domain_exists($domain, $path, $site_id) ) 317 return __( 'E rror: Site URL already taken.' );317 return __( 'ERROR: Site URL already taken.' ); 318 318 319 319 // Need to back up wpdb table names, and create a new wp_blogs entry for new blog. 320 320 // Need to get blog_id from wp_blogs, and create new table names. 321 321 // Must restore table names at the end of function. 322 322 323 323 if ( ! $blog_id = insert_blog($domain, $path, $site_id) ) 324 return __( 'E rror: problem creating site entry.' );324 return __( 'ERROR: problem creating site entry.' ); 325 325 326 326 switch_to_blog($blog_id); 327 327 install_blog($blog_id);