Ticket #26879: 26879-12.diff
File 26879-12.diff, 12.3 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/install.css
210 210 font-size: 18px; 211 211 } 212 212 213 #error-page {213 body.error-page { 214 214 margin-top: 50px; 215 215 } 216 216 217 #error-page p {217 body.error-page p { 218 218 font-size: 14px; 219 219 line-height: 18px; 220 220 margin: 25px 0 20px; 221 221 } 222 222 223 #error-page code, .code {224 font-family: Consolas, Monaco, monospace;225 }226 227 223 .wp-hide-pw > .dashicons { 228 224 line-height: inherit; 229 225 } -
src/wp-admin/setup-config.php
142 142 } 143 143 ?> 144 144 <h1 class="screen-reader-text"><?php _e( 'Before getting started' ) ?></h1> 145 <p><?php _e( 'Welcome to WordPress. Before getting started, we need some information on the database. You will need to know the following items before proceeding.' ) ?></p> 145 <p><?php _e( "OK! We need some information about your database." )?></p> 146 <p><?php _e( "This information is available through your web host. If you don't have it, you'll need to get in touch with them. Here's what you need:" ) ?></p> 146 147 <ol> 147 148 <li><?php _e( 'Database name' ); ?></li> 148 149 <li><?php _e( 'Database username' ); ?></li> 149 150 <li><?php _e( 'Database password' ); ?></li> 150 151 <li><?php _e( 'Database host' ); ?></li> 151 <li><?php _e( 'Table prefix (if you want to run more than one WordPress in a single database)' ); ?></li>152 152 </ol> 153 <p><?php _e( "Once you fill in this information, WordPress will create a configuration file called <code>wp-config.php</code>. This connects WordPress with your database, where your content and settings will be stored. Need more help? Check out our <a href='https://codex.wordpress.org/Editing_wp-config.php'>documentation</a>." ); ?></p> 154 <p><?php _e( "If you’re all ready…" ); ?></p> 153 155 <p><?php 154 156 /* translators: %s: wp-config.php */ 155 157 printf( __( 'We’re going to use this information to create a %s file.' ), … … 171 173 ?></p> 172 174 <p><?php _e( 'In all likelihood, these items were supplied to you by your Web Host. If you don’t have this information, then you will need to contact them before you can continue. If you’re all ready…' ); ?></p> 173 175 174 <p class="step"><a href=" <?php echo $step_1; ?>" class="button button-large"><?php _e( 'Let’s go!' ); ?></a></p>176 <p class="step"><a href="setup-config.php?step=1<?php if ( isset( $_GET['noapi'] ) ) echo '&noapi'; ?>" class="button button-large"><?php _e( 'Let’s Go!' ); ?></a></p> 175 177 <?php 176 178 break; 177 179 … … 183 185 ?> 184 186 <h1 class="screen-reader-text"><?php _e( 'Set up your database connection' ) ?></h1> 185 187 <form method="post" action="setup-config.php?step=2"> 186 <p><?php _e( 'Below you should enter your database connection details. If you’re not sure about these, contact your host.'); ?></p>188 <p><?php _e( "Below you should enter your MySQL database connection details. If you’re not sure about these, contact your host." ); ?></p> 187 189 <table class="form-table"> 188 190 <tr> 189 191 <th scope="row"><label for="dbname"><?php _e( 'Database Name' ); ?></label></th> 190 192 <td><input name="dbname" id="dbname" type="text" size="25" value="wordpress" /></td> 191 <td><?php _e( 'The name of the database you want to run WP in.' ); ?></td>193 <td><?php _e( 'The name of the database you want to use with WordPress.' ); ?></td> 192 194 </tr> 193 195 <tr> 194 196 <th scope="row"><label for="uname"><?php _e( 'User Name' ); ?></label></th> 195 197 <td><input name="uname" id="uname" type="text" size="25" value="<?php echo htmlspecialchars( _x( 'username', 'example username' ), ENT_QUOTES ); ?>" /></td> 196 <td><?php _e( 'Your MySQL username' ); ?></td>198 <td><?php _e( 'Your database username.' ); ?></td> 197 199 </tr> 198 200 <tr> 199 201 <th scope="row"><label for="pwd"><?php _e( 'Password' ); ?></label></th> 200 202 <td><input name="pwd" id="pwd" type="text" size="25" value="<?php echo htmlspecialchars( _x( 'password', 'example password' ), ENT_QUOTES ); ?>" autocomplete="off" /></td> 201 <td><?php _e( ' …and your MySQLpassword.' ); ?></td>203 <td><?php _e( 'Your database password.' ); ?></td> 202 204 </tr> 203 205 <tr> 204 206 <th scope="row"><label for="dbhost"><?php _e( 'Database Host' ); ?></label></th> … … 244 246 $install .= '?language=en_US'; 245 247 } 246 248 247 $tryagain_link = '</p><p class="step"><a href=" ' . $step_1 . '" onclick="javascript:history.go(-1);return false;" class="button button-large">' . __( 'Try again' ) . '</a>';249 $tryagain_link = '</p><p class="step"><a href="setup-config.php?step=1" onclick="javascript:history.go(-1);return false;" class="button button-large">' . __( 'Try Again' ) . '</a>'; 248 250 249 if ( empty( $prefix ) ) 250 wp_die( __( '<strong>ERROR</strong>: "Table Prefix" must not be empty.' . $tryagain_link ) ); 251 // Validate $prefix: it must not be empty 252 if ( empty( $prefix ) ) { 253 $die .= '<p style="text-align: center;">' . __( "Oops, the Table Prefix field can't be empty. Please go back and try again." ) . '</p>'; 254 $die .= '<p style="text-align: center;">' . __( "Need more help? Check out our <a href='https://codex.wordpress.org/Editing_wp-config.php#table_prefix'>documentation</a>." ) . '</p>'; 255 $die .= ( __( $tryagain_link ) ); 256 wp_die( $die ); 257 } 251 258 252 259 // Validate $prefix: it can only contain letters, numbers and underscores. 253 if ( preg_match( '|[^a-z0-9_]|i', $prefix ) ) 254 wp_die( __( '<strong>ERROR</strong>: "Table Prefix" can only contain numbers, letters, and underscores.' . $tryagain_link ) ); 260 if ( preg_match( '|[^a-z0-9_]|i', $prefix ) ) { 261 $die .= '<p style="text-align: center;">' . __( "Oops, the Table Prefix field can only contain numbers, letters, and underscores. Please go back and try again. ") . '</p>'; 262 $die .= '<p style="text-align: center;">' . __( "Need more help? Check out our <a href='https://codex.wordpress.org/Editing_wp-config.php#table_prefix'>documentation</a>." ) . '</p>'; 263 $die .= ( __( $tryagain_link ) ); 264 wp_die( $die ); 265 } 255 266 256 267 // Test the db connection. 257 268 /**#@+ … … 343 354 ?></p> 344 355 <p><?php 345 356 /* translators: %s: wp-config.php */ 346 printf( __( ' You can create the %s manually and paste the following text into it.'), '<code>wp-config.php</code>' );357 printf( __( 'To continue, manually create a file named %s in the root directory where the rest of your WordPress files are located and copy and paste the following text into the file:'), '<code>wp-config.php</code>' ); 347 358 ?></p> 348 359 <textarea id="wp-config" cols="98" rows="15" class="code" readonly="readonly"><?php 349 360 foreach ( $config_file as $line ) { -
src/wp-includes/functions.php
2530 2530 $message = "<ul>\n\t\t<li>" . join( "</li>\n\t\t<li>", $errors ) . "</li>\n\t</ul>"; 2531 2531 break; 2532 2532 } 2533 } elseif ( is_string( $message ) ) {2533 } elseif ( is_string( $message ) && empty( $r['raw'] ) ) { 2534 2534 $message = "<p>$message</p>"; 2535 2535 } 2536 2536 … … 2554 2554 $text_direction = 'rtl'; 2555 2555 elseif ( function_exists( 'is_rtl' ) && is_rtl() ) 2556 2556 $text_direction = 'rtl'; 2557 2558 $site_url = wp_guess_url(); 2559 2560 $classes = 'wp-core-ui'; 2561 if ( ! empty( $r['error'] ) ) { 2562 $classes .= ' error-page'; 2563 } 2564 if ( 'rtl' === $text_direction ) { 2565 $classes .= ' rtl'; 2566 } 2557 2567 ?> 2558 2568 <!DOCTYPE html> 2559 2569 <!-- Ticket #11289, IE bug fix: always pad the error page with enough characters such that it is greater than 512 bytes, even after gzip compression abcdefghijklmnopqrstuvwxyz1234567890aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz11223344556677889900abacbcbdcdcededfefegfgfhghgihihjijikjkjlklkmlmlnmnmononpopoqpqprqrqsrsrtstsubcbcdcdedefefgfabcadefbghicjkldmnoepqrfstugvwxhyz1i234j567k890laabmbccnddeoeffpgghqhiirjjksklltmmnunoovppqwqrrxsstytuuzvvw0wxx1yyz2z113223434455666777889890091abc2def3ghi4jkl5mno6pqr7stu8vwx9yz11aab2bcc3dd4ee5ff6gg7hh8ii9j0jk1kl2lmm3nnoo4p5pq6qrr7ss8tt9uuvv0wwx1x2yyzz13aba4cbcb5dcdc6dedfef8egf9gfh0ghg1ihi2hji3jik4jkj5lkl6kml7mln8mnm9ono … … 2563 2573 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 2564 2574 <meta name="viewport" content="width=device-width"> 2565 2575 <title><?php echo $title ?></title> 2566 <style type="text/css"> 2567 html { 2568 background: #f1f1f1; 2569 } 2570 body { 2571 background: #fff; 2572 color: #444; 2573 font-family: "Open Sans", sans-serif; 2574 margin: 2em auto; 2575 padding: 1em 2em; 2576 max-width: 700px; 2577 -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.13); 2578 box-shadow: 0 1px 3px rgba(0,0,0,0.13); 2579 } 2580 h1 { 2581 border-bottom: 1px solid #dadada; 2582 clear: both; 2583 color: #666; 2584 font: 24px "Open Sans", sans-serif; 2585 margin: 30px 0 0 0; 2586 padding: 0; 2587 padding-bottom: 7px; 2588 } 2589 #error-page { 2590 margin-top: 50px; 2591 } 2592 #error-page p { 2593 font-size: 14px; 2594 line-height: 1.5; 2595 margin: 25px 0 20px; 2596 } 2597 #error-page code { 2598 font-family: Consolas, Monaco, monospace; 2599 } 2600 ul li { 2601 margin-bottom: 10px; 2602 font-size: 14px ; 2603 } 2604 a { 2605 color: #0073aa; 2606 } 2607 a:hover, 2608 a:active { 2609 color: #00a0d2; 2610 } 2611 a:focus { 2612 color: #124964; 2613 -webkit-box-shadow: 2614 0 0 0 1px #5b9dd9, 2615 0 0 2px 1px rgba(30, 140, 190, .8); 2616 box-shadow: 2617 0 0 0 1px #5b9dd9, 2618 0 0 2px 1px rgba(30, 140, 190, .8); 2619 outline: none; 2620 } 2621 .button { 2622 background: #f7f7f7; 2623 border: 1px solid #ccc; 2624 color: #555; 2625 display: inline-block; 2626 text-decoration: none; 2627 font-size: 13px; 2628 line-height: 26px; 2629 height: 28px; 2630 margin: 0; 2631 padding: 0 10px 1px; 2632 cursor: pointer; 2633 -webkit-border-radius: 3px; 2634 -webkit-appearance: none; 2635 border-radius: 3px; 2636 white-space: nowrap; 2637 -webkit-box-sizing: border-box; 2638 -moz-box-sizing: border-box; 2639 box-sizing: border-box; 2640 2641 -webkit-box-shadow: 0 1px 0 #ccc; 2642 box-shadow: 0 1px 0 #ccc; 2643 vertical-align: top; 2644 } 2645 2646 .button.button-large { 2647 height: 30px; 2648 line-height: 28px; 2649 padding: 0 12px 2px; 2650 } 2651 2652 .button:hover, 2653 .button:focus { 2654 background: #fafafa; 2655 border-color: #999; 2656 color: #23282d; 2657 } 2658 2659 .button:focus { 2660 border-color: #5b9dd9; 2661 -webkit-box-shadow: 0 0 3px rgba( 0, 115, 170, .8 ); 2662 box-shadow: 0 0 3px rgba( 0, 115, 170, .8 ); 2663 outline: none; 2664 } 2665 2666 .button:active { 2667 background: #eee; 2668 border-color: #999; 2669 -webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); 2670 box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 ); 2671 -webkit-transform: translateY(1px); 2672 -ms-transform: translateY(1px); 2673 transform: translateY(1px); 2674 } 2675 2676 <?php 2677 if ( 'rtl' == $text_direction ) { 2678 echo 'body { font-family: Tahoma, Arial; }'; 2679 } 2680 ?> 2681 </style> 2576 <link rel="stylesheet" type="text/css" href="<?php echo $site_url; ?>/wp-admin/css/install.css?ver=20140309" /> 2577 <link rel="stylesheet" type="text/css" href="<?php echo $site_url; ?>/wp-includes/css/buttons.css?ver=20140309" /> 2682 2578 </head> 2683 <body id="error-page">2579 <body class="<?php echo $classes; ?>"> 2684 2580 <?php endif; // ! did_action( 'admin_head' ) ?> 2685 2581 <?php echo $message; ?> 2686 2582 </body> -
src/wp-load.php
72 72 wp_load_translations_early(); 73 73 74 74 // Die with an error message 75 $die = sprintf( 75 $die = '<h1 id="logo"><a href="https://wordpress.org/">WordPress</a></h1>'; 76 $die .= '<h1>' . __( 'Welcome to WordPress' ) . '</h1>'; 77 $die .= '<p>' . __( "In just a few minutes, you'll be all set up with WordPress and ready to create your own corner of the web." ) . '</p>'; 78 $die .= '<p>' . __( "This free and Open Source software is built and maintained by a community of hundreds of volunteers. Transform your website with countless of <a href='https://wordpress.org/plugins/'>plugins</a> and <a href='https://wordpress.org/themes/'>themes</a> available from right within WordPress." ) . '</p>'; 79 $die .= '<p>' . __( 'Write your blog, build your first website, launch your business, share your photos with your friends. You can do just about anything you can imagine.' ) . '</p>'; 80 $die .= '<p><a href="' . $path . '" class="button button-large">' . __( "Let's Get Started!" ) . '</a>'; 81 $die .= sprintf( 76 82 /* translators: %s: wp-config.php */ 77 83 __( "There doesn't seem to be a %s file. I need this before we can get started." ), 78 84 '<code>wp-config.php</code>'