How to remove scripts in posts from an sql injection attack?

前端 未结 3 455
清歌不尽
清歌不尽 2020-12-18 06:05

I had a plugin that made my Wordpress site vulnerable to SQL injection attack. I\'ve since locked down my site and removed all Wordpress files then reinstalled Wordpress. Th

3条回答
  •  清酒与你
    2020-12-18 06:24

    You can try using function replace this has most confiable:

    UPDATE wp_posts SET post_content = replace(post_content, '
    
    ',
    '');
    

提交回复
热议问题