Skip to content

Commit 27ab462

Browse files
committed
Fix warnings in W3 validator - script and style “type” attribute not required.
1 parent 35968ec commit 27ab462

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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)