Make WordPress Core


Ignore:
Timestamp:
10/14/2009 05:53:49 AM (15 years ago)
Author:
azaozz
Message:

Remove remains from the old bookmarklet code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r12022 r12029  
    327327 */
    328328function get_default_post_to_edit() {
     329
     330    $post_title = '';
    329331    if ( !empty( $_REQUEST['post_title'] ) )
    330332        $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     }
    337333
    338334    $post_content = '';
    339335    if ( !empty( $_REQUEST['content'] ) )
    340336        $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 = '';
    348339    if ( !empty( $_REQUEST['excerpt'] ) )
    349340        $post_excerpt = esc_html( stripslashes( $_REQUEST['excerpt'] ));
    350     else
    351         $post_excerpt = '';
    352341
    353342    $post->ID = 0;
Note: See TracChangeset for help on using the changeset viewer.