Fix validation errors, add CDATA on inline JS, props Viper007Bond, fixes #8026

git-svn-id: http://svn.automattic.com/wordpress/trunk@9470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2008-11-02 02:18:32 +00:00
parent 550a4413e9
commit 585f9c3aca
1 changed files with 4 additions and 2 deletions

View File

@ -2829,7 +2829,7 @@ function find_posts_div($found_action = '') {
<?php wp_nonce_field( 'find-posts', '_ajax_nonce', false ); ?> <?php wp_nonce_field( 'find-posts', '_ajax_nonce', false ); ?>
<label class="hidden" for="find-posts-input"><?php _e( 'Search' ); ?></label> <label class="hidden" for="find-posts-input"><?php _e( 'Search' ); ?></label>
<input type="text" id="find-posts-input" class="search-input" name="ps" value="" /> <input type="text" id="find-posts-input" class="search-input" name="ps" value="" />
<input type="button" onClick="findPosts.send();" value="<?php _e( 'Search' ); ?>" class="button" /><br /> <input type="button" onclick="findPosts.send();" value="<?php _e( 'Search' ); ?>" class="button" /><br />
<input type="radio" name="find-posts-what" id="find-posts-posts" checked="checked" value="posts" /> <input type="radio" name="find-posts-what" id="find-posts-posts" checked="checked" value="posts" />
<label for="find-posts-posts"><?php _e( 'Posts' ); ?></label> <label for="find-posts-posts"><?php _e( 'Posts' ); ?></label>
@ -2839,11 +2839,12 @@ function find_posts_div($found_action = '') {
<div id="find-posts-response"></div> <div id="find-posts-response"></div>
</div> </div>
<div class="find-box-buttons"> <div class="find-box-buttons">
<input type="button" class="button" onClick="findPosts.close();" value="<?php _e('Close'); ?>" /> <input type="button" class="button" onclick="findPosts.close();" value="<?php _e('Close'); ?>" />
<input id="find-posts-submit" type="submit" class="button" value="<?php _e('Select'); ?>" /> <input id="find-posts-submit" type="submit" class="button" value="<?php _e('Select'); ?>" />
</div> </div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
/* <![CDATA[ */
(function($){ (function($){
findPosts = { findPosts = {
open : function(af_name, af_val) { open : function(af_name, af_val) {
@ -2938,6 +2939,7 @@ function find_posts_div($found_action = '') {
}); });
}); });
})(jQuery); })(jQuery);
/* ]]> */
</script> </script>
<?php <?php
} }