WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16379, comment 55

Timestamp:
10/04/12 14:10:08 (9 months ago)
Author:
ryan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16379, comment 55

    initial v1  
    1 User get_current_screen() instead of the $current_screen global. There is no need to esc_html( stripslashes() ) the data going to wp_insert/update_post(). They expect slashed data and will handle sanitization. 
     1Use get_current_screen() instead of the $current_screen global. There is no need to esc_html( stripslashes() ) the data going to wp_insert/update_post(). They expect slashed data and will handle sanitization.