[wp-trac] [WordPress Trac] #26734: wp_insert_post is stripping target="_blank" in version 3.8
WordPress Trac
noreply at wordpress.org
Sat Jan 11 15:55:40 UTC 2014
#26734: wp_insert_post is stripping target="_blank" in version 3.8
-------------------------------+------------------------------
Reporter: wpmate | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.8
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Comment (by wpmate):
It occurs programmatically ie in a php script. If you compose a post
containing target="_blank" and use a script something like below to create
the post, the target="_blank" 'disappears'
$post_data =
compact('post_content','post_title','post_date','post_date_gmt','post_author','post_category',
'post_status',
'tags_input','post_parent','post_type','post_mime_type','guid','tax_input');
$post_data = add_magic_quotes($post_data);
$post_ID = wp_insert_post($post_data);
return $post_ID;
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26734#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list