function post_security_check($data,$postarr){
if (!is_admin()){
/*
* Change the stored post so that it appears as typed, but will not invoke the s2member shortcodes
*/
$i=0;$j=0;$k=0;
$a=preg_replace('/\[s2/', '[s2', $data['post_content'],-1,$i);
$a=preg_replace('/\<\?php/', '<?php', $a,-1,$i);
$a=preg_replace('/\?\>/', '?>', $a,-1,$i);
$data['post_content']=preg_replace('/\[\/s2If/', '[/s2If',$a,-1,$j);
if ($i+$j+$k>0){
/*
* Above logic has had to change a post so audit correction
*/
}
};
return $data;
}
Statistics: Posted by DaveWP196 — December 7th, 2011, 4:16 pm
"is_user_logged_in", "is_user_not_logged_in", "user_is", "user_is_not", "user_can", "user_cannot", "current_user_is", "current_user_is_not", "current_user_can", "current_user_cannot", "is_admin", "is_blog_admin", "is_user_admin", "is_network_admin", "is_404", "is_home", "is_front_page", "is_singular", "is_single", "is_page", "is_page_template", "is_attachment", "is_feed", "is_archive", "is_search", "is_category", "is_tax", "is_tag", "has_tag", "is_author", "is_date", "is_day", "is_month", "is_time", "is_year", "is_sticky", "is_paged", "is_preview", "is_comments_popup", "in_the_loop", "comments_open", "pings_open", "has_excerpt", "has_post_thumbnail"
Statistics: Posted by Jason Caldwell — December 2nd, 2011, 1:40 am
Statistics: Posted by DaveWP196 — December 1st, 2011, 4:36 am