Skip to content

Commit 9c35b75

Browse files
committed
Merge branch 'develop'
2 parents e4b630a + 272ca8d commit 9c35b75

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased]
66

7+
### Changed
8+
- Fix warnings in W3 validator - script and style “type” attribute not required. Props [@dianamurcia](https://github.com/dianamurcia).
9+
710
## [2.2.5] - 2019-06-04
811

912
### Added

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ If you would like to translate this plugin you can easily contribute at the [Tra
8181
== Changelog ==
8282

8383
= Unreleased =
84+
- Fix warnings in W3 validator - script and style “type” attribute not required. Props [@dianamurcia](https://github.com/dianamurcia).
8485

8586
= 2.2.5 =
8687
- Added `password_protected_login_password_title` filter to allow customizing the "Password" label on the login form. Props [Jeremy Herve](https://github.com/jeherve).

theme/password-protected-login.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function wp_shake_js() {
1717
return;
1818
}
1919
?>
20-
<script type="text/javascript">
20+
<script>
2121
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
2222
function s(id,pos){g(id).left=pos+'px';}
2323
function g(id){return document.getElementById(id).style;}
@@ -83,7 +83,7 @@ function wp_login_viewport_meta() {
8383

8484
?>
8585

86-
<style type="text/css" media="screen">
86+
<style media="screen">
8787
#login_error, .login .message, #loginform { margin-bottom: 20px; }
8888
</style>
8989

@@ -92,7 +92,7 @@ function wp_login_viewport_meta() {
9292
if ( $is_iphone ) {
9393
?>
9494
<meta name="viewport" content="width=320; initial-scale=0.9; maximum-scale=1.0; user-scalable=0;" />
95-
<style type="text/css" media="screen">
95+
<style media="screen">
9696
.login form, .login .message, #login_error { margin-left: 0px; }
9797
.login #nav, .login #backtoblog { margin-left: 8px; }
9898
.login h1 a { width: auto; }
@@ -139,7 +139,7 @@ function wp_login_viewport_meta() {
139139

140140
</div>
141141

142-
<script type="text/javascript">
142+
<script>
143143
try{document.getElementById('password_protected_pass').focus();}catch(e){}
144144
if(typeof wpOnload=='function')wpOnload();
145145
</script>

0 commit comments

Comments
 (0)