Changeset 12029 for trunk/wp-admin/includes/post.php
- Timestamp:
- 10/14/2009 05:53:49 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r12022 r12029 327 327 */ 328 328 function get_default_post_to_edit() { 329 330 $post_title = ''; 329 331 if ( !empty( $_REQUEST['post_title'] ) ) 330 332 $post_title = esc_html( stripslashes( $_REQUEST['post_title'] )); 331 else if ( !empty( $_REQUEST['popuptitle'] ) ) {332 $post_title = esc_html( stripslashes( $_REQUEST['popuptitle'] ));333 $post_title = funky_javascript_fix( $post_title );334 } else {335 $post_title = '';336 }337 333 338 334 $post_content = ''; 339 335 if ( !empty( $_REQUEST['content'] ) ) 340 336 $post_content = esc_html( stripslashes( $_REQUEST['content'] )); 341 else if ( !empty( $post_title ) ) { 342 $text = esc_html( stripslashes( urldecode( $_REQUEST['text'] ) ) ); 343 $text = funky_javascript_fix( $text); 344 $popupurl = esc_url($_REQUEST['popupurl']); 345 $post_content = '<a href="'.$popupurl.'">'.$post_title.'</a>'."\n$text"; 346 } 347 337 338 $post_excerpt = ''; 348 339 if ( !empty( $_REQUEST['excerpt'] ) ) 349 340 $post_excerpt = esc_html( stripslashes( $_REQUEST['excerpt'] )); 350 else351 $post_excerpt = '';352 341 353 342 $post->ID = 0;
Note: See TracChangeset
for help on using the changeset viewer.