Making WordPress.org

Ticket #3392: 3392.diff

File 3392.diff, 749 bytes (added by obenland, 7 years ago)
  • wp-content/themes/wptv2/plugins/wordpresstv-anon-upload/anon-upload.php

     
    213213                $anon_post = get_default_post_to_edit( 'post' ); // without saving auto-draft
    214214                $anon_post = get_object_vars( $anon_post );
    215215
    216                 $anon_post['post_title']   = 'Uploaded video';
     216                $anon_post['post_title']   = $this->sanitize_text( $_posted['wptv_video_title'] );
    217217                $anon_post['post_excerpt'] = '';
    218218                $anon_post['post_author']  = $this->drafts_author;
    219219                $anon_post['post_status']  = 'pending';