Changeset 11380 for trunk/wp-admin/includes/post.php
- Timestamp:
- 05/18/2009 03:11:07 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r11375 r11380 320 320 function get_default_post_to_edit() { 321 321 if ( !empty( $_REQUEST['post_title'] ) ) 322 $post_title = wp_specialchars( stripslashes( $_REQUEST['post_title'] ));322 $post_title = esc_html( stripslashes( $_REQUEST['post_title'] )); 323 323 else if ( !empty( $_REQUEST['popuptitle'] ) ) { 324 $post_title = wp_specialchars( stripslashes( $_REQUEST['popuptitle'] ));324 $post_title = esc_html( stripslashes( $_REQUEST['popuptitle'] )); 325 325 $post_title = funky_javascript_fix( $post_title ); 326 326 } else { … … 330 330 $post_content = ''; 331 331 if ( !empty( $_REQUEST['content'] ) ) 332 $post_content = wp_specialchars( stripslashes( $_REQUEST['content'] ));332 $post_content = esc_html( stripslashes( $_REQUEST['content'] )); 333 333 else if ( !empty( $post_title ) ) { 334 $text = wp_specialchars( stripslashes( urldecode( $_REQUEST['text'] ) ) );334 $text = esc_html( stripslashes( urldecode( $_REQUEST['text'] ) ) ); 335 335 $text = funky_javascript_fix( $text); 336 336 $popupurl = clean_url($_REQUEST['popupurl']); … … 339 339 340 340 if ( !empty( $_REQUEST['excerpt'] ) ) 341 $post_excerpt = wp_specialchars( stripslashes( $_REQUEST['excerpt'] ));341 $post_excerpt = esc_html( stripslashes( $_REQUEST['excerpt'] )); 342 342 else 343 343 $post_excerpt = '';
Note: See TracChangeset
for help on using the changeset viewer.