Make WordPress Core


Ignore:
Timestamp:
06/24/2006 01:28:08 AM (20 years ago)
Author:
ryan
Message:

js_escape() in onclicks. fixes #2851

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-page-form.php

    r3804 r3907  
    186186<?php if ('edit' == $action) :
    187187        if ( current_user_can('delete_page', $post->ID) ) ?>
    188                 <input name="deletepost" class="delete" type="submit" id="deletepost" tabindex="10" value="<?php _e('Delete this page') ?>" <?php echo "onclick=\"return confirm('" . sprintf(__("You are about to delete this page \'%s\'\\n  \'Cancel\' to stop, \'OK\' to delete."), $wpdb->escape($post->post_title) ) . "')\""; ?> />
     188                <input name="deletepost" class="delete" type="submit" id="deletepost" tabindex="10" value="<?php _e('Delete this page') ?>" <?php echo "onclick=\"return confirm('" . sprintf(__("You are about to delete this page \'%s\'\\n  \'Cancel\' to stop, \'OK\' to delete."), js_escape($post->post_title) ) . "')\""; ?> />
    189189<?php endif; ?>
    190190</form>
Note: See TracChangeset for help on using the changeset viewer.