WP-robot bug fix

dima054

Regular Member
Joined
Jan 19, 2011
Messages
447
Reaction score
158
Hopefully it's useful and i post it in a right place.
You probably noticed that some of your wp-robot posts contain shit like "&#thirteen", "&#13", "&#nsbp", right?
The solution is, go to wp-robot dir/modules. Open the Article.php
Inside almost at the end there are some lines of
Code:
$post = str_replace
Find last of those and add
Code:
            $post = str_replace(' ', '', $post);
            $post = str_replace('&#13', '', $post);
            $post = str_replace('&#thirteen;', '', $post);
            $post = str_replace('&#thirteen', '', $post);
            $post = str_replace(' ', '', $post);
            $post = str_replace('&nbsp', '', $post);
            $post = str_replace(']]>;', '', $post);
            $post = str_replace(']]>', '', $post);
Then save the file and upload it to the hosting. For fixing existing posts, run an SQL query, but not sure its safe as i never tried. This file editing thingie works OK on wprobot 3.2 and 3.5
 
Do it only if you see those wierd things in your posts...
 
Back
Top