Textpattern CMS support forum
- From: Baltimore, MD
- Registered: 2005-10-30
- Posts: 23
Re: [issue] categories not importing properly (wordpress)
Can I also suggest, from a test import a week or so again, that you add two more items to the comments stuff. Currently, Textpattern imports all comments and sets them all to visible. This is bad when a blog has thousands of spam marked as spam or otherwise not modified.
WordPress offers comment_approved as 0,1,spam. 0 is awaiting moderation. 1 is approved. spam is self explanatory.
I added below line 43:
“.$wpdbprefix.“comments.comment_approved as status
Added at approx line 147-148:
//Do some Comment Spam Mojo
$visible = ($status == 1) ? 1 : 0;
and changed line 158 to be:
visible = $visible”,$txplink) or $results= mysql_error();