Ticket #32589: 32589.5.diff
File 32589.5.diff, 5.7 KB (added by , 9 years ago) |
---|
-
wp-admin/css/forms.css
498 498 display:none; 499 499 } 500 500 501 .wp-pwd{ 502 margin-right: 20px; 503 } 504 501 505 .indicator-hint { 502 506 padding-top: 8px; 503 507 } -
wp-admin/css/install.css
198 198 font-family: Consolas, Monaco, monospace; 199 199 } 200 200 201 button.wp-hide-pw > .dashicons { 202 position: relative; 203 top: 3px; 204 } 205 206 .wp-pwd{ 207 margin-right: 20px; 208 } 209 201 210 #pass-strength-result { 202 211 background-color: #eee; 203 border-color: #ddd !important; 204 border-style: solid; 205 border-width: 1px; 206 margin: 5px 5px 5px 0; 207 padding: 5px; 212 border: 1px solid #ddd; 213 padding: 3px 5px; 208 214 text-align: center; 209 width: 200px; 210 display: none; 215 width: 218px; 216 -webkit-box-sizing: border-box; 217 -moz-box-sizing: border-box; 218 box-sizing: border-box; 219 opacity: 0; 211 220 } 212 221 222 #pass-strength-result.short { 223 opacity: 1; 224 background-color: #ffa0a0; 225 border-color: #f04040; 226 } 227 213 228 #pass-strength-result.bad { 229 opacity: 1; 214 230 background-color: #ffb78c; 215 border-color: #ff853c !important;231 border-color: #ff853c; 216 232 } 217 233 218 234 #pass-strength-result.good { 235 opacity: 1; 219 236 background-color: #ffec8b; 220 border-color: #f fcc00 !important;237 border-color: #fc0; 221 238 } 222 239 223 #pass-strength-result.short {224 background-color: #ffa0a0;225 border-color: #f04040 !important;226 }227 228 240 #pass-strength-result.strong { 241 opacity: 1; 229 242 background-color: #c3ff88; 230 border-color: #8dff1c !important;243 border-color: #8dff1c; 231 244 } 232 245 246 #pass1.short { 247 border-color: #f04040; 248 } 249 250 #pass1.bad { 251 border-color: #ff853c; 252 } 253 254 #pass1.good { 255 border-color: #fc0; 256 } 257 258 #pass1.strong { 259 border-color: #8dff1c; 260 } 261 262 .pw-weak{ 263 display:none; 264 } 265 233 266 .message { 234 267 border: 1px solid #c00; 235 268 padding: 0.5em 0.7em; … … 374 407 vertical-align: top; 375 408 } 376 409 410 411 377 412 /** 378 413 * HiDPI Displays 379 414 */ -
wp-admin/install.php
128 128 </td> 129 129 </tr> 130 130 <?php if ( ! $user_table ) : ?> 131 <tr >131 <tr class="form-field form-required user-pass1-wrap"> 132 132 <th scope="row"> 133 <label for="pass1"><?php _e('Password, twice'); ?></label> 134 <p><?php _e('A password will be automatically generated for you if you leave this blank.'); ?></p> 133 <label for="pass1"> 134 <?php _e( 'Password' ); ?> 135 <span class="description hide-if-js"><?php /* translators: password input field */_e( '(required)' ); ?></span> 136 </label> 135 137 </th> 136 138 <td> 137 <input name="admin_password" type="password" id="pass1" size="25" value="" /> 138 <p><input name="admin_password2" type="password" id="pass2" size="25" value="" /></p> 139 <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div> 140 <p><?php echo wp_get_password_hint(); ?></p> 139 <button type="button" class="button button-secondary wp-generate-pw hide-if-no-js"><?php _e( 'Show password' ); ?></button> 140 <div class="wp-pwd hide-if-js"> 141 <?php $initial_password = wp_generate_password( 24 ); ?> 142 <input type="password" name="admin_password" id="pass1" class="regular-text" autocomplete="off" data-reveal="1" data-pw="<?php echo esc_attr( $initial_password ); ?>" /> 143 <button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0"> 144 <span class="dashicons dashicons-visibility"></span> 145 <span class="text">hide</span> 146 </button> 147 <div style="display:none" id="pass-strength-result"></div> 148 </div> 149 <p><span class="description"><?php _e( 'A password reset link will be sent to the user via email' ); ?></span></p> 141 150 </td> 142 151 </tr> 152 <tr class="form-field form-required user-pass2-wrap hide-if-js"> 153 <th scope="row"><label for="pass2"><?php _e( 'Repeat Password' ); ?> <span class="description"><?php /* translators: password input field */_e('(required)'); ?></span></label></th> 154 <td> 155 <input name="admin_password2" type="password" id="pass2" autocomplete="off" /> 156 </td> 157 </tr> 158 <tr class="pw-weak"> 159 <th><label for="pw-weak"><?php _e( 'Confirm Password' ); ?></label></th> 160 <td> 161 <input type="checkbox" name="pw-weak" class="pw-checkbox" /> 162 <?php _e( 'Confirm use of weak password' ); ?> 163 </td> 164 </tr> 143 165 <?php endif; ?> 144 166 <tr> 145 167 <th scope="row"><label for="admin_email"><?php _e( 'Your E-mail' ); ?></label></th> … … 151 173 <td colspan="2"><label><input type="checkbox" name="blog_public" id="blog_public" value="1" <?php checked( $blog_public ); ?> /> <?php _e( 'Allow search engines to index this site.' ); ?></label></td> 152 174 </tr> 153 175 </table> 154 <p class="step"><input type="submit" name="Submit" value="<?php esc_attr_e( 'Install WordPress' ); ?>" class="button button-large" /></p>176 <p class="step"><input id="submit" type="submit" name="Submit" value="<?php esc_attr_e( 'Install WordPress' ); ?>" class="button button-large" /></p> 155 177 <input type="hidden" name="language" value="<?php echo isset( $_REQUEST['language'] ) ? esc_attr( $_REQUEST['language'] ) : ''; ?>" /> 156 178 </form> 157 179 <?php -
wp-includes/pluggable.php
2107 2107 $rnd_value .= sha1($rnd_value); 2108 2108 $rnd_value .= sha1($rnd_value . $seed); 2109 2109 $seed = md5($seed . $rnd_value); 2110 if ( ! defined( 'WP_SETUP_CONFIG' ) )2110 if ( ! defined( 'WP_SETUP_CONFIG' ) && ! defined( 'WP_INSTALLING' ) ) { 2111 2111 set_transient('random_seed', $seed); 2112 2112 } 2113 2113