Unique Article Wizard needs strip slashes!

0
836

I’m playing about with the Unique Article Wizard plugin for WordPress (for a friend, not for this site!!!) and there’s an obvious problem where all of the articles need their slashes to be stripped. It looks like a serious case of magic quote paranoia!

A look at the plugin code makes article_mods.php the obvious candidate for tweaking:

Change lines 370 – 384 from


$uawarticle_id = wp_update_post(array (
'ID' => $pageposts[0]->post_id,
'post_author' => $uawuser_id,
'post_title' => stripslashes($title),
'post_content' => stripslashes($article . "\n\n\n\n" . $_REQUEST['resource_box']."\n\ncategories: ".$_REQUEST['keywords']) ,
'post_excerpt' => stripslashes(stripslashes($description)),
'post_type' => 'post',
'post_status' => $uawstatus,
'post_modified_date' => date("Y-m-d H:i:s"),
'post_modified_date_gmt' => gmdate("Y-m-d H:i:s"),
'post_category' => array (
$uawcategory_id
),

to


$uawarticle_id = wp_update_post(array (
'ID' => $pageposts[0]->post_id,
'post_author' => $uawuser_id,
'post_title' => $title,
'post_content' => $article . "\n\n\n\n" . $_REQUEST['resource_box']."\n\ncategories: ".$_REQUEST['keywords'] ,
'post_excerpt' => stripslashes(stripslashes($description)),
'post_type' => 'post',
'post_status' => $uawstatus,
'post_modified_date' => date("Y-m-d H:i:s"),
'post_modified_date_gmt' => gmdate("Y-m-d H:i:s"),
'post_category' => array (
$uawcategory_id
),

problem solved 😀

SHARE
Previous articleDelete Linux MBR
Next articleDisk Quotas On Ubuntu
Hi, I'm Rus and after 10 years of Linux administration and software development, in September 2014 I quit my day job, sold all my stuff and moved to Thailand to live the good life. My new website, http://www.ruspow.com shows how I'm making money online as well as what life can be like when you're not sat behind a desk and are free to make your own decisions!