Login and Registration: Add a "Show password" button on the login page.
The ability for users to see the password they're typing improves usability and accessibility of the login users flow. - brings the login screen in line with the same feature already used in the New User, Edit User, and Reset Password pages - improves association of labels and input fields by using explicit association with `for` / `id` attributes - slightly increases the "Remember me" label font size Props johnbillion, Iceable, audrasjb, joyously, adamsilverstein, boemedia, DrewAPicture, shadyvb, birgire, peterwilsoncc, pento, anevins, davidbaumwald, whyisjake, afercia. Fixes #42888. Built from https://develop.svn.wordpress.org/trunk@46256 git-svn-id: http://core.svn.wordpress.org/trunk@46068 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
dad9ce2e43
commit
0d75495612
|
@ -1500,9 +1500,9 @@ table.form-table td .updated p {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-pwd [type="text"],
|
/* Needs higher specificity than normal input type text and password. */
|
||||||
.wp-pwd [type="password"] {
|
#profile-page .form-table #pass1 {
|
||||||
padding-left: 88px;
|
padding-left: 90px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-pwd button.button {
|
.wp-pwd button.button {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1500,9 +1500,9 @@ table.form-table td .updated p {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-pwd [type="text"],
|
/* Needs higher specificity than normal input type text and password. */
|
||||||
.wp-pwd [type="password"] {
|
#profile-page .form-table #pass1 {
|
||||||
padding-right: 88px;
|
padding-right: 90px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-pwd button.button {
|
.wp-pwd button.button {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -301,6 +301,17 @@ body.rtl,
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wp-pwd #pass1 {
|
||||||
|
padding-left: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-pwd .button.wp-hide-pw {
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pass-strength-result {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body.language-chooser {
|
body.language-chooser {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -301,6 +301,17 @@ body.rtl,
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wp-pwd #pass1 {
|
||||||
|
padding-right: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-pwd .button.wp-hide-pw {
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pass-strength-result {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body.language-chooser {
|
body.language-chooser {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -37,10 +37,6 @@ a:focus {
|
||||||
0 0 2px 1px rgba(30, 140, 190, 0.8);
|
0 0 2px 1px rgba(30, 140, 190, 0.8);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ie8 a:focus {
|
|
||||||
outline: #5b9dd9 solid 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
p {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
@ -75,14 +71,6 @@ p {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .password-input-wrapper {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login .input.password-input {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login .input::-ms-clear {
|
.login .input::-ms-clear {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -91,7 +79,7 @@ p {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .button.button-secondary {
|
.login .button.wp-hide-pw {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
@ -102,25 +90,37 @@ p {
|
||||||
padding: 5px 9px;
|
padding: 5px 9px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .button.button-secondary:hover {
|
.login .button.wp-hide-pw:hover {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .button.button-secondary:focus {
|
.login .button.wp-hide-pw:focus {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border-color: #5b9dd9;
|
border-color: #5b9dd9;
|
||||||
box-shadow: 0 0 3px rgba(0, 115, 170, 0.8);
|
box-shadow: 0 0 3px rgba(0, 115, 170, 0.8);
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .button.button-secondary:active {
|
.login .button.wp-hide-pw:active {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
transform: none;
|
transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.login .button.wp-hide-pw .dashicons {
|
||||||
|
top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login .wp-pwd {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-js .hide-if-no-js {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.login form {
|
.login form {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
@ -195,9 +195,10 @@ p {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login form .forgetmenot label {
|
.login .forgetmenot label,
|
||||||
font-size: 12px;
|
.login .pw-weak label {
|
||||||
line-height: 1.58333333;
|
line-height: 1.5;
|
||||||
|
vertical-align: baseline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login h1 {
|
.login h1 {
|
||||||
|
@ -270,16 +271,18 @@ p {
|
||||||
}
|
}
|
||||||
|
|
||||||
.login form .input,
|
.login form .input,
|
||||||
.login input[type="text"] {
|
.login input[type="text"],
|
||||||
|
.login input[type="password"] {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin: 2px 0 16px 6px;
|
margin: 3px 0 16px 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-action-rp form .input,
|
.js.login input.password-input,
|
||||||
.login-action-rp input[type="text"] {
|
.js.login-action-rp form .input,
|
||||||
padding: 5px 5px 5px 45px;
|
.js.login-action-rp input[type="text"] {
|
||||||
|
padding-left: 45px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login form .input,
|
.login form .input,
|
||||||
|
@ -288,14 +291,9 @@ p {
|
||||||
background: #fbfbfb;
|
background: #fbfbfb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ie7 .login form .input,
|
.js.login-action-rp input[type="text"],
|
||||||
.ie8 .login form .input {
|
.js.login-action-rp input[type="password"] {
|
||||||
font-family: sans-serif;
|
margin-bottom: 0;
|
||||||
}
|
|
||||||
|
|
||||||
.login-action-rp input[type="text"] {
|
|
||||||
box-shadow: none;
|
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.login #pass-strength-result {
|
.login #pass-strength-result {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
/*! This file is auto-generated */
|
/*! This file is auto-generated */
|
||||||
body,html{height:100%;margin:0;padding:0}body{background:#f1f1f1;min-width:0;color:#444;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}a{color:#0073aa;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a{outline:0}a:active,a:hover{color:#00a0d2}a:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.ie8 a:focus{outline:#5b9dd9 solid 1px}p{line-height:1.5}.login #login_error,.login .message,.login .success{border-right:4px solid #00a0d2;padding:12px;margin-right:0;margin-bottom:20px;background-color:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.login .success{border-right-color:#46b450}.login #login_error{border-right-color:#dc3232}#loginform p.submit,.login-action-lostpassword p.submit{border:none;margin:-10px 0 20px}.login *{margin:0;padding:0}.login .password-input-wrapper{position:relative}.login .input.password-input{margin:0}.login .input::-ms-clear{display:none}.login .pw-weak{margin-bottom:15px}.login .button.button-secondary{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:2;height:auto;margin:0;padding:5px 9px;position:absolute;left:0;top:0}.login .button.button-secondary:hover{background:0 0}.login .button.button-secondary:focus{background:0 0;border-color:#5b9dd9;box-shadow:0 0 3px rgba(0,115,170,.8)}.login .button.button-secondary:active{background:0 0;box-shadow:none;transform:none}.login form{margin-top:20px;margin-right:0;padding:26px 24px 46px;font-weight:400;overflow:hidden;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.13)}.login-action-confirm_admin_email #login{width:60vw;margin-top:-2vh}@media screen and (max-width:782px){.login-action-confirm_admin_email #login{width:100vw}}.login form .forgetmenot{font-weight:400;float:right;margin-bottom:0}.login .button-primary{float:left}.login .admin-email-confirm-form .submit{text-align:center}.admin-email__later{text-align:right}.login form p.admin-email__details{margin:1.1em 0}.login h1.admin-email__heading{border-bottom:1px #f1f1f1 solid;color:#5f5f5f;font-weight:400;padding-bottom:.5em;text-align:right}.admin-email__actions div{padding-top:1.5em}.login .admin-email__actions .button-primary{float:none;margin-right:.25em;margin-left:.25em}#login form p{margin-bottom:0}#login form p.submit{margin:0;padding:0}.login label{font-size:14px}.login form .forgetmenot label{font-size:12px;line-height:1.58333333}.login h1{text-align:center}.login h1 a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#444;height:84px;font-size:20px;font-weight:400;line-height:1.3;margin:0 auto 25px;padding:0;text-decoration:none;width:84px;text-indent:-9999px;outline:0;overflow:hidden;display:block}#login{width:320px;padding:8% 0 0;margin:auto}.login #backtoblog,.login #nav{font-size:13px;padding:0 24px 0}.login #nav{margin:24px 0 0 0}#backtoblog{margin:16px 0}.login #backtoblog a,.login #nav a{text-decoration:none;color:#555d66}.login #backtoblog a:hover,.login #nav a:hover,.login h1 a:hover{color:#00a0d2}.login #backtoblog a:focus,.login #nav a:focus,.login h1 a:focus{color:#124964}.login .privacy-policy-page-link{text-align:center;width:100%;margin:5em 0 2em}.login form .input,.login input[type=text]{font-size:24px;width:100%;padding:5px;margin:2px 0 16px 6px}.login-action-rp form .input,.login-action-rp input[type=text]{padding:5px 5px 5px 45px}.login form .input,.login form input[type=checkbox],.login input[type=text]{background:#fbfbfb}.ie7 .login form .input,.ie8 .login form .input{font-family:sans-serif}.login-action-rp input[type=text]{box-shadow:none;margin:0}.login #pass-strength-result{font-weight:600;margin:-1px 0 16px 5px;padding:6px 5px;text-align:center;width:100%}body.interim-login{height:auto}.interim-login #login{padding:0;margin:5px auto 20px}.interim-login.login h1 a{width:auto}.interim-login #login_error,.interim-login.login .message{margin:0 0 16px}.interim-login.login form{margin:0}.screen-reader-text,.screen-reader-text span{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}@-ms-viewport{width:device-width}@media screen and (max-height:550px){#login{padding:20px 0}}@media screen and (max-width:782px){.interim-login input[type=checkbox]{height:16px;width:16px}.interim-login input[type=checkbox]:checked:before{width:16px;font:normal 21px/1 dashicons;margin:-3px -4px 0 0}}
|
body,html{height:100%;margin:0;padding:0}body{background:#f1f1f1;min-width:0;color:#444;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}a{color:#0073aa;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a{outline:0}a:active,a:hover{color:#00a0d2}a:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}p{line-height:1.5}.login #login_error,.login .message,.login .success{border-right:4px solid #00a0d2;padding:12px;margin-right:0;margin-bottom:20px;background-color:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.login .success{border-right-color:#46b450}.login #login_error{border-right-color:#dc3232}#loginform p.submit,.login-action-lostpassword p.submit{border:none;margin:-10px 0 20px}.login *{margin:0;padding:0}.login .input::-ms-clear{display:none}.login .pw-weak{margin-bottom:15px}.login .button.wp-hide-pw{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:2;height:auto;margin:0;padding:5px 9px;position:absolute;left:0;top:3px}.login .button.wp-hide-pw:hover{background:0 0}.login .button.wp-hide-pw:focus{background:0 0;border-color:#5b9dd9;box-shadow:0 0 3px rgba(0,115,170,.8)}.login .button.wp-hide-pw:active{background:0 0;box-shadow:none;transform:none}.login .button.wp-hide-pw .dashicons{top:4px}.login .wp-pwd{position:relative}.no-js .hide-if-no-js{display:none}.login form{margin-top:20px;margin-right:0;padding:26px 24px 46px;font-weight:400;overflow:hidden;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.13)}.login-action-confirm_admin_email #login{width:60vw;margin-top:-2vh}@media screen and (max-width:782px){.login-action-confirm_admin_email #login{width:100vw}}.login form .forgetmenot{font-weight:400;float:right;margin-bottom:0}.login .button-primary{float:left}.login .admin-email-confirm-form .submit{text-align:center}.admin-email__later{text-align:right}.login form p.admin-email__details{margin:1.1em 0}.login h1.admin-email__heading{border-bottom:1px #f1f1f1 solid;color:#5f5f5f;font-weight:400;padding-bottom:.5em;text-align:right}.admin-email__actions div{padding-top:1.5em}.login .admin-email__actions .button-primary{float:none;margin-right:.25em;margin-left:.25em}#login form p{margin-bottom:0}#login form p.submit{margin:0;padding:0}.login label{font-size:14px}.login .forgetmenot label,.login .pw-weak label{line-height:1.5;vertical-align:baseline}.login h1{text-align:center}.login h1 a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#444;height:84px;font-size:20px;font-weight:400;line-height:1.3;margin:0 auto 25px;padding:0;text-decoration:none;width:84px;text-indent:-9999px;outline:0;overflow:hidden;display:block}#login{width:320px;padding:8% 0 0;margin:auto}.login #backtoblog,.login #nav{font-size:13px;padding:0 24px 0}.login #nav{margin:24px 0 0 0}#backtoblog{margin:16px 0}.login #backtoblog a,.login #nav a{text-decoration:none;color:#555d66}.login #backtoblog a:hover,.login #nav a:hover,.login h1 a:hover{color:#00a0d2}.login #backtoblog a:focus,.login #nav a:focus,.login h1 a:focus{color:#124964}.login .privacy-policy-page-link{text-align:center;width:100%;margin:5em 0 2em}.login form .input,.login input[type=password],.login input[type=text]{font-size:24px;width:100%;padding:5px;margin:3px 0 16px 6px}.js.login input.password-input,.js.login-action-rp form .input,.js.login-action-rp input[type=text]{padding-left:45px}.login form .input,.login form input[type=checkbox],.login input[type=text]{background:#fbfbfb}.js.login-action-rp input[type=password],.js.login-action-rp input[type=text]{margin-bottom:0}.login #pass-strength-result{font-weight:600;margin:-1px 0 16px 5px;padding:6px 5px;text-align:center;width:100%}body.interim-login{height:auto}.interim-login #login{padding:0;margin:5px auto 20px}.interim-login.login h1 a{width:auto}.interim-login #login_error,.interim-login.login .message{margin:0 0 16px}.interim-login.login form{margin:0}.screen-reader-text,.screen-reader-text span{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}@-ms-viewport{width:device-width}@media screen and (max-height:550px){#login{padding:20px 0}}@media screen and (max-width:782px){.interim-login input[type=checkbox]{height:16px;width:16px}.interim-login input[type=checkbox]:checked:before{width:16px;font:normal 21px/1 dashicons;margin:-3px -4px 0 0}}
|
|
@ -37,10 +37,6 @@ a:focus {
|
||||||
0 0 2px 1px rgba(30, 140, 190, 0.8);
|
0 0 2px 1px rgba(30, 140, 190, 0.8);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ie8 a:focus {
|
|
||||||
outline: #5b9dd9 solid 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
p {
|
p {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
@ -75,14 +71,6 @@ p {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .password-input-wrapper {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login .input.password-input {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login .input::-ms-clear {
|
.login .input::-ms-clear {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -91,7 +79,7 @@ p {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .button.button-secondary {
|
.login .button.wp-hide-pw {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: 1px solid transparent;
|
border: 1px solid transparent;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
@ -102,25 +90,37 @@ p {
|
||||||
padding: 5px 9px;
|
padding: 5px 9px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .button.button-secondary:hover {
|
.login .button.wp-hide-pw:hover {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .button.button-secondary:focus {
|
.login .button.wp-hide-pw:focus {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border-color: #5b9dd9;
|
border-color: #5b9dd9;
|
||||||
box-shadow: 0 0 3px rgba(0, 115, 170, 0.8);
|
box-shadow: 0 0 3px rgba(0, 115, 170, 0.8);
|
||||||
}
|
}
|
||||||
|
|
||||||
.login .button.button-secondary:active {
|
.login .button.wp-hide-pw:active {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
transform: none;
|
transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.login .button.wp-hide-pw .dashicons {
|
||||||
|
top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login .wp-pwd {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.no-js .hide-if-no-js {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.login form {
|
.login form {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
@ -195,9 +195,10 @@ p {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login form .forgetmenot label {
|
.login .forgetmenot label,
|
||||||
font-size: 12px;
|
.login .pw-weak label {
|
||||||
line-height: 1.58333333;
|
line-height: 1.5;
|
||||||
|
vertical-align: baseline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login h1 {
|
.login h1 {
|
||||||
|
@ -270,16 +271,18 @@ p {
|
||||||
}
|
}
|
||||||
|
|
||||||
.login form .input,
|
.login form .input,
|
||||||
.login input[type="text"] {
|
.login input[type="text"],
|
||||||
|
.login input[type="password"] {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin: 2px 6px 16px 0;
|
margin: 3px 6px 16px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-action-rp form .input,
|
.js.login input.password-input,
|
||||||
.login-action-rp input[type="text"] {
|
.js.login-action-rp form .input,
|
||||||
padding: 5px 45px 5px 5px;
|
.js.login-action-rp input[type="text"] {
|
||||||
|
padding-right: 45px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login form .input,
|
.login form .input,
|
||||||
|
@ -288,14 +291,9 @@ p {
|
||||||
background: #fbfbfb;
|
background: #fbfbfb;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ie7 .login form .input,
|
.js.login-action-rp input[type="text"],
|
||||||
.ie8 .login form .input {
|
.js.login-action-rp input[type="password"] {
|
||||||
font-family: sans-serif;
|
margin-bottom: 0;
|
||||||
}
|
|
||||||
|
|
||||||
.login-action-rp input[type="text"] {
|
|
||||||
box-shadow: none;
|
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.login #pass-strength-result {
|
.login #pass-strength-result {
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
/*! This file is auto-generated */
|
/*! This file is auto-generated */
|
||||||
body,html{height:100%;margin:0;padding:0}body{background:#f1f1f1;min-width:0;color:#444;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}a{color:#0073aa;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a{outline:0}a:active,a:hover{color:#00a0d2}a:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}.ie8 a:focus{outline:#5b9dd9 solid 1px}p{line-height:1.5}.login #login_error,.login .message,.login .success{border-left:4px solid #00a0d2;padding:12px;margin-left:0;margin-bottom:20px;background-color:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.login .success{border-left-color:#46b450}.login #login_error{border-left-color:#dc3232}#loginform p.submit,.login-action-lostpassword p.submit{border:none;margin:-10px 0 20px}.login *{margin:0;padding:0}.login .password-input-wrapper{position:relative}.login .input.password-input{margin:0}.login .input::-ms-clear{display:none}.login .pw-weak{margin-bottom:15px}.login .button.button-secondary{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:2;height:auto;margin:0;padding:5px 9px;position:absolute;right:0;top:0}.login .button.button-secondary:hover{background:0 0}.login .button.button-secondary:focus{background:0 0;border-color:#5b9dd9;box-shadow:0 0 3px rgba(0,115,170,.8)}.login .button.button-secondary:active{background:0 0;box-shadow:none;transform:none}.login form{margin-top:20px;margin-left:0;padding:26px 24px 46px;font-weight:400;overflow:hidden;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.13)}.login-action-confirm_admin_email #login{width:60vw;margin-top:-2vh}@media screen and (max-width:782px){.login-action-confirm_admin_email #login{width:100vw}}.login form .forgetmenot{font-weight:400;float:left;margin-bottom:0}.login .button-primary{float:right}.login .admin-email-confirm-form .submit{text-align:center}.admin-email__later{text-align:left}.login form p.admin-email__details{margin:1.1em 0}.login h1.admin-email__heading{border-bottom:1px #f1f1f1 solid;color:#5f5f5f;font-weight:400;padding-bottom:.5em;text-align:left}.admin-email__actions div{padding-top:1.5em}.login .admin-email__actions .button-primary{float:none;margin-left:.25em;margin-right:.25em}#login form p{margin-bottom:0}#login form p.submit{margin:0;padding:0}.login label{font-size:14px}.login form .forgetmenot label{font-size:12px;line-height:1.58333333}.login h1{text-align:center}.login h1 a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#444;height:84px;font-size:20px;font-weight:400;line-height:1.3;margin:0 auto 25px;padding:0;text-decoration:none;width:84px;text-indent:-9999px;outline:0;overflow:hidden;display:block}#login{width:320px;padding:8% 0 0;margin:auto}.login #backtoblog,.login #nav{font-size:13px;padding:0 24px 0}.login #nav{margin:24px 0 0 0}#backtoblog{margin:16px 0}.login #backtoblog a,.login #nav a{text-decoration:none;color:#555d66}.login #backtoblog a:hover,.login #nav a:hover,.login h1 a:hover{color:#00a0d2}.login #backtoblog a:focus,.login #nav a:focus,.login h1 a:focus{color:#124964}.login .privacy-policy-page-link{text-align:center;width:100%;margin:5em 0 2em}.login form .input,.login input[type=text]{font-size:24px;width:100%;padding:5px;margin:2px 6px 16px 0}.login-action-rp form .input,.login-action-rp input[type=text]{padding:5px 45px 5px 5px}.login form .input,.login form input[type=checkbox],.login input[type=text]{background:#fbfbfb}.ie7 .login form .input,.ie8 .login form .input{font-family:sans-serif}.login-action-rp input[type=text]{box-shadow:none;margin:0}.login #pass-strength-result{font-weight:600;margin:-1px 5px 16px 0;padding:6px 5px;text-align:center;width:100%}body.interim-login{height:auto}.interim-login #login{padding:0;margin:5px auto 20px}.interim-login.login h1 a{width:auto}.interim-login #login_error,.interim-login.login .message{margin:0 0 16px}.interim-login.login form{margin:0}.screen-reader-text,.screen-reader-text span{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}@-ms-viewport{width:device-width}@media screen and (max-height:550px){#login{padding:20px 0}}@media screen and (max-width:782px){.interim-login input[type=checkbox]{height:16px;width:16px}.interim-login input[type=checkbox]:checked:before{width:16px;font:normal 21px/1 dashicons;margin:-3px 0 0 -4px}}
|
body,html{height:100%;margin:0;padding:0}body{background:#f1f1f1;min-width:0;color:#444;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;line-height:1.4}a{color:#0073aa;transition-property:border,background,color;transition-duration:.05s;transition-timing-function:ease-in-out}a{outline:0}a:active,a:hover{color:#00a0d2}a:focus{color:#124964;box-shadow:0 0 0 1px #5b9dd9,0 0 2px 1px rgba(30,140,190,.8)}p{line-height:1.5}.login #login_error,.login .message,.login .success{border-left:4px solid #00a0d2;padding:12px;margin-left:0;margin-bottom:20px;background-color:#fff;box-shadow:0 1px 1px 0 rgba(0,0,0,.1)}.login .success{border-left-color:#46b450}.login #login_error{border-left-color:#dc3232}#loginform p.submit,.login-action-lostpassword p.submit{border:none;margin:-10px 0 20px}.login *{margin:0;padding:0}.login .input::-ms-clear{display:none}.login .pw-weak{margin-bottom:15px}.login .button.wp-hide-pw{background:0 0;border:1px solid transparent;box-shadow:none;font-size:14px;line-height:2;height:auto;margin:0;padding:5px 9px;position:absolute;right:0;top:3px}.login .button.wp-hide-pw:hover{background:0 0}.login .button.wp-hide-pw:focus{background:0 0;border-color:#5b9dd9;box-shadow:0 0 3px rgba(0,115,170,.8)}.login .button.wp-hide-pw:active{background:0 0;box-shadow:none;transform:none}.login .button.wp-hide-pw .dashicons{top:4px}.login .wp-pwd{position:relative}.no-js .hide-if-no-js{display:none}.login form{margin-top:20px;margin-left:0;padding:26px 24px 46px;font-weight:400;overflow:hidden;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.13)}.login-action-confirm_admin_email #login{width:60vw;margin-top:-2vh}@media screen and (max-width:782px){.login-action-confirm_admin_email #login{width:100vw}}.login form .forgetmenot{font-weight:400;float:left;margin-bottom:0}.login .button-primary{float:right}.login .admin-email-confirm-form .submit{text-align:center}.admin-email__later{text-align:left}.login form p.admin-email__details{margin:1.1em 0}.login h1.admin-email__heading{border-bottom:1px #f1f1f1 solid;color:#5f5f5f;font-weight:400;padding-bottom:.5em;text-align:left}.admin-email__actions div{padding-top:1.5em}.login .admin-email__actions .button-primary{float:none;margin-left:.25em;margin-right:.25em}#login form p{margin-bottom:0}#login form p.submit{margin:0;padding:0}.login label{font-size:14px}.login .forgetmenot label,.login .pw-weak label{line-height:1.5;vertical-align:baseline}.login h1{text-align:center}.login h1 a{background-image:url(../images/w-logo-blue.png?ver=20131202);background-image:none,url(../images/wordpress-logo.svg?ver=20131107);background-size:84px;background-position:center top;background-repeat:no-repeat;color:#444;height:84px;font-size:20px;font-weight:400;line-height:1.3;margin:0 auto 25px;padding:0;text-decoration:none;width:84px;text-indent:-9999px;outline:0;overflow:hidden;display:block}#login{width:320px;padding:8% 0 0;margin:auto}.login #backtoblog,.login #nav{font-size:13px;padding:0 24px 0}.login #nav{margin:24px 0 0 0}#backtoblog{margin:16px 0}.login #backtoblog a,.login #nav a{text-decoration:none;color:#555d66}.login #backtoblog a:hover,.login #nav a:hover,.login h1 a:hover{color:#00a0d2}.login #backtoblog a:focus,.login #nav a:focus,.login h1 a:focus{color:#124964}.login .privacy-policy-page-link{text-align:center;width:100%;margin:5em 0 2em}.login form .input,.login input[type=password],.login input[type=text]{font-size:24px;width:100%;padding:5px;margin:3px 6px 16px 0}.js.login input.password-input,.js.login-action-rp form .input,.js.login-action-rp input[type=text]{padding-right:45px}.login form .input,.login form input[type=checkbox],.login input[type=text]{background:#fbfbfb}.js.login-action-rp input[type=password],.js.login-action-rp input[type=text]{margin-bottom:0}.login #pass-strength-result{font-weight:600;margin:-1px 5px 16px 0;padding:6px 5px;text-align:center;width:100%}body.interim-login{height:auto}.interim-login #login{padding:0;margin:5px auto 20px}.interim-login.login h1 a{width:auto}.interim-login #login_error,.interim-login.login .message{margin:0 0 16px}.interim-login.login form{margin:0}.screen-reader-text,.screen-reader-text span{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}@-ms-viewport{width:device-width}@media screen and (max-height:550px){#login{padding:20px 0}}@media screen and (max-width:782px){.interim-login input[type=checkbox]{height:16px;width:16px}.interim-login input[type=checkbox]:checked:before{width:16px;font:normal 21px/1 dashicons;margin:-3px 0 0 -4px}}
|
|
@ -7,10 +7,7 @@
|
||||||
var updateLock = false,
|
var updateLock = false,
|
||||||
|
|
||||||
$pass1Row,
|
$pass1Row,
|
||||||
$pass1Wrap,
|
|
||||||
$pass1,
|
$pass1,
|
||||||
$pass1Text,
|
|
||||||
$pass1Label,
|
|
||||||
$pass2,
|
$pass2,
|
||||||
$weakRow,
|
$weakRow,
|
||||||
$weakCheckbox,
|
$weakCheckbox,
|
||||||
|
@ -36,7 +33,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( 1 !== parseInt( $toggleButton.data( 'start-masked' ), 10 ) ) {
|
if ( 1 !== parseInt( $toggleButton.data( 'start-masked' ), 10 ) ) {
|
||||||
$pass1Wrap.addClass( 'show-password' );
|
$pass1.attr( 'type', 'text' );
|
||||||
} else {
|
} else {
|
||||||
$toggleButton.trigger( 'click' );
|
$toggleButton.trigger( 'click' );
|
||||||
}
|
}
|
||||||
|
@ -48,28 +45,6 @@
|
||||||
function bindPass1() {
|
function bindPass1() {
|
||||||
currentPass = $pass1.val();
|
currentPass = $pass1.val();
|
||||||
|
|
||||||
$pass1Wrap = $pass1.parent();
|
|
||||||
|
|
||||||
$pass1Text = $( '<input type="text"/>' )
|
|
||||||
.attr( {
|
|
||||||
'id': 'pass1-text',
|
|
||||||
'name': 'pass1-text',
|
|
||||||
'autocomplete': 'off'
|
|
||||||
} )
|
|
||||||
.addClass( $pass1[0].className )
|
|
||||||
.data( 'pw', $pass1.data( 'pw' ) )
|
|
||||||
.val( $pass1.val() )
|
|
||||||
.on( 'input', function () {
|
|
||||||
if ( $pass1Text.val() === currentPass ) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$pass2.val( $pass1Text.val() );
|
|
||||||
$pass1.val( $pass1Text.val() ).trigger( 'pwupdate' );
|
|
||||||
currentPass = $pass1Text.val();
|
|
||||||
} );
|
|
||||||
|
|
||||||
$pass1.after( $pass1Text );
|
|
||||||
|
|
||||||
if ( 1 === parseInt( $pass1.data( 'reveal' ), 10 ) ) {
|
if ( 1 === parseInt( $pass1.data( 'reveal' ), 10 ) ) {
|
||||||
generatePassword();
|
generatePassword();
|
||||||
}
|
}
|
||||||
|
@ -80,65 +55,41 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
currentPass = $pass1.val();
|
currentPass = $pass1.val();
|
||||||
if ( $pass1Text.val() !== currentPass ) {
|
|
||||||
$pass1Text.val( currentPass );
|
$pass1.removeClass( 'short bad good strong' );
|
||||||
}
|
|
||||||
$pass1.add( $pass1Text ).removeClass( 'short bad good strong' );
|
|
||||||
showOrHideWeakPasswordCheckbox();
|
showOrHideWeakPasswordCheckbox();
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
function resetToggle() {
|
function resetToggle( show ) {
|
||||||
$toggleButton
|
$toggleButton
|
||||||
.data( 'toggle', 0 )
|
|
||||||
.attr({
|
.attr({
|
||||||
'aria-label': userProfileL10n.ariaHide
|
'aria-label': show ? userProfileL10n.ariaShow : userProfileL10n.ariaHide
|
||||||
})
|
})
|
||||||
.find( '.text' )
|
.find( '.text' )
|
||||||
.text( userProfileL10n.hide )
|
.text( show ? userProfileL10n.show : userProfileL10n.hide )
|
||||||
.end()
|
.end()
|
||||||
.find( '.dashicons' )
|
.find( '.dashicons' )
|
||||||
.removeClass( 'dashicons-visibility' )
|
.removeClass( show ? 'dashicons-hidden' : 'dashicons-visibility' )
|
||||||
.addClass( 'dashicons-hidden' );
|
.addClass( show ? 'dashicons-visibility' : 'dashicons-hidden' );
|
||||||
|
|
||||||
$pass1Text.focus();
|
|
||||||
|
|
||||||
$pass1Label.attr( 'for', 'pass1-text' );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function bindToggleButton() {
|
function bindToggleButton() {
|
||||||
$toggleButton = $pass1Row.find('.wp-hide-pw');
|
$toggleButton = $pass1Row.find('.wp-hide-pw');
|
||||||
$toggleButton.show().on( 'click', function () {
|
$toggleButton.show().on( 'click', function () {
|
||||||
if ( 1 === parseInt( $toggleButton.data( 'toggle' ), 10 ) ) {
|
if ( 'password' === $pass1.attr( 'type' ) ) {
|
||||||
$pass1Wrap.addClass( 'show-password' );
|
$pass1.attr( 'type', 'text' );
|
||||||
|
resetToggle( false );
|
||||||
resetToggle();
|
|
||||||
|
|
||||||
if ( ! _.isUndefined( $pass1Text[0].setSelectionRange ) ) {
|
|
||||||
$pass1Text[0].setSelectionRange( 0, 100 );
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$pass1Wrap.removeClass( 'show-password' );
|
$pass1.attr( 'type', 'password' );
|
||||||
$toggleButton
|
resetToggle( true );
|
||||||
.data( 'toggle', 1 )
|
}
|
||||||
.attr({
|
|
||||||
'aria-label': userProfileL10n.ariaShow
|
|
||||||
})
|
|
||||||
.find( '.text' )
|
|
||||||
.text( userProfileL10n.show )
|
|
||||||
.end()
|
|
||||||
.find( '.dashicons' )
|
|
||||||
.removeClass('dashicons-hidden')
|
|
||||||
.addClass('dashicons-visibility');
|
|
||||||
|
|
||||||
$pass1.focus();
|
$pass1.focus();
|
||||||
|
|
||||||
$pass1Label.attr( 'for', 'pass1' );
|
|
||||||
|
|
||||||
if ( ! _.isUndefined( $pass1[0].setSelectionRange ) ) {
|
if ( ! _.isUndefined( $pass1[0].setSelectionRange ) ) {
|
||||||
$pass1[0].setSelectionRange( 0, 100 );
|
$pass1[0].setSelectionRange( 0, 100 );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -147,10 +98,9 @@
|
||||||
$generateButton,
|
$generateButton,
|
||||||
$cancelButton;
|
$cancelButton;
|
||||||
|
|
||||||
$pass1Row = $('.user-pass1-wrap');
|
$pass1Row = $( '.user-pass1-wrap, .user-pass-wrap' );
|
||||||
$pass1Label = $pass1Row.find('th label').attr( 'for', 'pass1-text' );
|
|
||||||
|
|
||||||
// hide this
|
// Hide the confirm password field when JavaScript support is enabled.
|
||||||
$('.user-pass2-wrap').hide();
|
$('.user-pass2-wrap').hide();
|
||||||
|
|
||||||
$submitButton = $( '#submit, #wp-submit' ).on( 'click', function () {
|
$submitButton = $( '#submit, #wp-submit' ).on( 'click', function () {
|
||||||
|
@ -168,6 +118,9 @@
|
||||||
$pass1 = $('#pass1');
|
$pass1 = $('#pass1');
|
||||||
if ( $pass1.length ) {
|
if ( $pass1.length ) {
|
||||||
bindPass1();
|
bindPass1();
|
||||||
|
} else {
|
||||||
|
// Password field for the login form.
|
||||||
|
$pass1 = $( '#user_pass' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -189,7 +142,6 @@
|
||||||
if ( $pass1.is( ':hidden' ) ) {
|
if ( $pass1.is( ':hidden' ) ) {
|
||||||
$pass1.prop( 'disabled', true );
|
$pass1.prop( 'disabled', true );
|
||||||
$pass2.prop( 'disabled', true );
|
$pass2.prop( 'disabled', true );
|
||||||
$pass1Text.prop( 'disabled', true );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$passwordWrapper = $pass1Row.find( '.wp-pwd' );
|
$passwordWrapper = $pass1Row.find( '.wp-pwd' );
|
||||||
|
@ -211,18 +163,10 @@
|
||||||
// Enable the inputs when showing.
|
// Enable the inputs when showing.
|
||||||
$pass1.attr( 'disabled', false );
|
$pass1.attr( 'disabled', false );
|
||||||
$pass2.attr( 'disabled', false );
|
$pass2.attr( 'disabled', false );
|
||||||
$pass1Text.attr( 'disabled', false );
|
|
||||||
|
|
||||||
if ( $pass1Text.val().length === 0 ) {
|
if ( $pass1.val().length === 0 ) {
|
||||||
generatePassword();
|
generatePassword();
|
||||||
}
|
}
|
||||||
|
|
||||||
_.defer( function() {
|
|
||||||
$pass1Text.focus();
|
|
||||||
if ( ! _.isUndefined( $pass1Text[0].setSelectionRange ) ) {
|
|
||||||
$pass1Text[0].setSelectionRange( 0, 100 );
|
|
||||||
}
|
|
||||||
}, 0 );
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
$cancelButton = $pass1Row.find( 'button.wp-cancel-pw' );
|
$cancelButton = $pass1Row.find( 'button.wp-cancel-pw' );
|
||||||
|
@ -230,7 +174,7 @@
|
||||||
updateLock = false;
|
updateLock = false;
|
||||||
|
|
||||||
// Clear any entered password.
|
// Clear any entered password.
|
||||||
$pass1Text.val( '' );
|
$pass1.val( '' );
|
||||||
|
|
||||||
// Generate a new password.
|
// Generate a new password.
|
||||||
wp.ajax.post( 'generate-password' )
|
wp.ajax.post( 'generate-password' )
|
||||||
|
@ -248,9 +192,8 @@
|
||||||
// Disable the inputs when hiding to prevent autofill and submission.
|
// Disable the inputs when hiding to prevent autofill and submission.
|
||||||
$pass1.prop( 'disabled', true );
|
$pass1.prop( 'disabled', true );
|
||||||
$pass2.prop( 'disabled', true );
|
$pass2.prop( 'disabled', true );
|
||||||
$pass1Text.prop( 'disabled', true );
|
|
||||||
|
|
||||||
resetToggle();
|
resetToggle( false );
|
||||||
|
|
||||||
if ( $pass1Row.closest( 'form' ).is( '#your-profile' ) ) {
|
if ( $pass1Row.closest( 'form' ).is( '#your-profile' ) ) {
|
||||||
// Clear password field to prevent update
|
// Clear password field to prevent update
|
||||||
|
@ -265,7 +208,6 @@
|
||||||
$pass1.prop( 'disabled', false );
|
$pass1.prop( 'disabled', false );
|
||||||
$pass2.prop( 'disabled', false );
|
$pass2.prop( 'disabled', false );
|
||||||
$pass2.val( $pass1.val() );
|
$pass2.val( $pass1.val() );
|
||||||
$pass1Wrap.removeClass( 'show-password' );
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -305,7 +247,7 @@
|
||||||
var passStrength = $('#pass-strength-result')[0];
|
var passStrength = $('#pass-strength-result')[0];
|
||||||
|
|
||||||
if ( passStrength.className ) {
|
if ( passStrength.className ) {
|
||||||
$pass1.add( $pass1Text ).addClass( passStrength.className );
|
$pass1.addClass( passStrength.className );
|
||||||
if ( $( passStrength ).is( '.short, .bad' ) ) {
|
if ( $( passStrength ).is( '.short, .bad' ) ) {
|
||||||
if ( ! $weakCheckbox.prop( 'checked' ) ) {
|
if ( ! $weakCheckbox.prop( 'checked' ) ) {
|
||||||
$submitButtons.prop( 'disabled', true );
|
$submitButtons.prop( 'disabled', true );
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-46255';
|
$wp_version = '5.3-alpha-46256';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
98
wp-login.php
98
wp-login.php
|
@ -825,10 +825,9 @@ switch ( $action ) {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
|
<form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
|
||||||
<p>
|
|
||||||
<label for="user_login" ><?php _e( 'Username or Email Address' ); ?><br />
|
<label for="user_login"><?php _e( 'Username or Email Address' ); ?></label>
|
||||||
<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" /></label>
|
<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" />
|
||||||
</p>
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -840,12 +839,12 @@ switch ( $action ) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
|
<input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
|
||||||
<p class="submit">
|
<div class="submit">
|
||||||
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Get New Password' ); ?>" />
|
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Get New Password' ); ?>" />
|
||||||
</p>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<p id="nav">
|
<div id="nav">
|
||||||
<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
|
<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
@ -859,7 +858,7 @@ switch ( $action ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</p>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
login_footer( 'user_login' );
|
login_footer( 'user_login' );
|
||||||
|
@ -936,31 +935,27 @@ switch ( $action ) {
|
||||||
<input type="hidden" id="user_login" value="<?php echo esc_attr( $rp_login ); ?>" autocomplete="off" />
|
<input type="hidden" id="user_login" value="<?php echo esc_attr( $rp_login ); ?>" autocomplete="off" />
|
||||||
|
|
||||||
<div class="user-pass1-wrap">
|
<div class="user-pass1-wrap">
|
||||||
<p>
|
|
||||||
<label for="pass1"><?php _e( 'New password' ); ?></label>
|
<label for="pass1"><?php _e( 'New password' ); ?></label>
|
||||||
</p>
|
|
||||||
|
|
||||||
<div class="wp-pwd">
|
<div class="wp-pwd">
|
||||||
<div class="password-input-wrapper">
|
|
||||||
<input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input password-input" size="24" value="" autocomplete="off" aria-describedby="pass-strength-result" />
|
<input type="password" data-reveal="1" data-pw="<?php echo esc_attr( wp_generate_password( 16 ) ); ?>" name="pass1" id="pass1" class="input password-input" size="24" value="" autocomplete="off" aria-describedby="pass-strength-result" />
|
||||||
<button type="button" class="button button-secondary wp-hide-pw hide-if-no-js">
|
|
||||||
|
<button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
|
||||||
<span class="dashicons dashicons-hidden" aria-hidden="true"></span>
|
<span class="dashicons dashicons-hidden" aria-hidden="true"></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
|
||||||
<div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div>
|
<div id="pass-strength-result" class="hide-if-no-js" aria-live="polite"><?php _e( 'Strength indicator' ); ?></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="pw-weak">
|
<div class="pw-weak">
|
||||||
<label>
|
<input type="checkbox" name="pw_weak" id="pw-weak" class="pw-checkbox" />
|
||||||
<input type="checkbox" name="pw_weak" class="pw-checkbox" />
|
<label for="pw-weak"><?php _e( 'Confirm use of weak password' ); ?></label>
|
||||||
<?php _e( 'Confirm use of weak password' ); ?>
|
|
||||||
</label>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="user-pass2-wrap">
|
<div class="user-pass2-wrap">
|
||||||
<label for="pass2"><?php _e( 'Confirm new password' ); ?></label><br />
|
<label for="pass2"><?php _e( 'Confirm new password' ); ?></label>
|
||||||
<input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" />
|
<input type="password" name="pass2" id="pass2" class="input" size="20" value="" autocomplete="off" />
|
||||||
</p>
|
</div>
|
||||||
|
|
||||||
<p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p>
|
<p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p>
|
||||||
<br class="clear" />
|
<br class="clear" />
|
||||||
|
@ -978,12 +973,12 @@ switch ( $action ) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<input type="hidden" name="rp_key" value="<?php echo esc_attr( $rp_key ); ?>" />
|
<input type="hidden" name="rp_key" value="<?php echo esc_attr( $rp_key ); ?>" />
|
||||||
<p class="submit">
|
<div class="submit">
|
||||||
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Reset Password' ); ?>" />
|
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Reset Password' ); ?>" />
|
||||||
</p>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<p id="nav">
|
<div id="nav">
|
||||||
<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
|
<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
@ -997,7 +992,7 @@ switch ( $action ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</p>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
login_footer( 'user_pass' );
|
login_footer( 'user_pass' );
|
||||||
|
@ -1057,14 +1052,14 @@ switch ( $action ) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<form name="registerform" id="registerform" action="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login_post' ) ); ?>" method="post" novalidate="novalidate">
|
<form name="registerform" id="registerform" action="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login_post' ) ); ?>" method="post" novalidate="novalidate">
|
||||||
<p>
|
<div>
|
||||||
<label for="user_login"><?php _e( 'Username' ); ?><br />
|
<label for="user_login"><?php _e( 'Username' ); ?></label>
|
||||||
<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( wp_unslash( $user_login ) ); ?>" size="20" autocapitalize="off" /></label>
|
<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr( wp_unslash( $user_login ) ); ?>" size="20" autocapitalize="off" />
|
||||||
</p>
|
</div>
|
||||||
<p>
|
<div>
|
||||||
<label for="user_email"><?php _e( 'Email' ); ?><br />
|
<label for="user_email"><?php _e( 'Email' ); ?></label>
|
||||||
<input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr( wp_unslash( $user_email ) ); ?>" size="25" /></label>
|
<input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr( wp_unslash( $user_email ) ); ?>" size="25" />
|
||||||
</p>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1080,16 +1075,16 @@ switch ( $action ) {
|
||||||
</p>
|
</p>
|
||||||
<br class="clear" />
|
<br class="clear" />
|
||||||
<input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
|
<input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
|
||||||
<p class="submit">
|
<div class="submit">
|
||||||
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Register' ); ?>" />
|
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Register' ); ?>" />
|
||||||
</p>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<p id="nav">
|
<div id="nav">
|
||||||
<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
|
<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
|
||||||
<?php echo esc_html( $login_link_separator ); ?>
|
<?php echo esc_html( $login_link_separator ); ?>
|
||||||
<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a>
|
<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?' ); ?></a>
|
||||||
</p>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
login_footer( 'user_login' );
|
login_footer( 'user_login' );
|
||||||
|
@ -1329,17 +1324,22 @@ switch ( $action ) {
|
||||||
$aria_describedby_error = '';
|
$aria_describedby_error = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wp_enqueue_script( 'user-profile' );
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
|
<form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
|
||||||
<p>
|
<label for="user_login"><?php _e( 'Username or Email Address' ); ?></label>
|
||||||
<label for="user_login"><?php _e( 'Username or Email Address' ); ?><br />
|
<input type="text" name="log" id="user_login"<?php echo $aria_describedby_error; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" />
|
||||||
<input type="text" name="log" id="user_login"<?php echo $aria_describedby_error; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" autocapitalize="off" /></label>
|
|
||||||
</p>
|
<div class="user-pass-wrap">
|
||||||
<p>
|
<label for="user_pass"><?php _e( 'Password' ); ?></label>
|
||||||
<label for="user_pass"><?php _e( 'Password' ); ?><br />
|
<div class="wp-pwd">
|
||||||
<input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input" value="" size="20" /></label>
|
<input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input password-input" value="" size="20" />
|
||||||
</p>
|
<button type="button" class="button button-secondary wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Show password' ); ?>">
|
||||||
|
<span class="dashicons dashicons-visibility" aria-hidden="true"></span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1350,8 +1350,8 @@ switch ( $action ) {
|
||||||
do_action( 'login_form' );
|
do_action( 'login_form' );
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<p class="forgetmenot"><label for="rememberme"><input name="rememberme" type="checkbox" id="rememberme" value="forever" <?php checked( $rememberme ); ?> /> <?php esc_html_e( 'Remember Me' ); ?></label></p>
|
<div class="forgetmenot"><input name="rememberme" type="checkbox" id="rememberme" value="forever" <?php checked( $rememberme ); ?> /> <label for="rememberme"><?php esc_html_e( 'Remember Me' ); ?></label></div>
|
||||||
<p class="submit">
|
<div class="submit">
|
||||||
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Log In' ); ?>" />
|
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e( 'Log In' ); ?>" />
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
@ -1373,14 +1373,14 @@ switch ( $action ) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<input type="hidden" name="testcookie" value="1" />
|
<input type="hidden" name="testcookie" value="1" />
|
||||||
</p>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ( ! $interim_login ) {
|
if ( ! $interim_login ) {
|
||||||
?>
|
?>
|
||||||
<p id="nav">
|
<div id="nav">
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ), true ) ) {
|
if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ), true ) ) {
|
||||||
|
@ -1399,7 +1399,7 @@ switch ( $action ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</p>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue