diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php
index 044e0b3..a6cf10a 100644
|
a
|
b
|
if ( post_type_supports( $post_type, 'comments' ) ) |
| 464 | 464 | |
| 465 | 465 | <?php if ( (isset($post->post_title) && '' == $post->post_title) || (isset($_GET['message']) && 2 > $_GET['message']) ) : ?> |
| 466 | 466 | <script type="text/javascript"> |
| 467 | | try{document.post.title.focus();}catch(e){} |
| | 467 | try{ |
| | 468 | var post_title = document.post.title; |
| | 469 | if ( post_title.value === '' ) { |
| | 470 | post_title.focus(); |
| | 471 | } |
| | 472 | }catch(e){} |
| 468 | 473 | </script> |
| 469 | 474 | <?php endif; ?> |