最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

post meta - Removing Malware

programmeradmin0浏览0评论

I've been asked to remove some Malware from a friend's site.

I've found some wonky links in the wp_postmeta table, but the post_id that the field is associated with doesn't exist - and, weirdly, it's way too high. I think the fields have the meta_key that starts with _feedback_

What is the easiest way to search the meta_value on those fields (seems to be JSON?) and delete the bad ones?

I found this post that suggested:

DELETE * FROM wp_postmeta WHERE post_id NOT IN (SELECT ID FROM wp_posts)

But when I ran (with updated table names) I got 0 results, which I feel shouldn't happen?

SELECT * FROM wp_postmeta WHERE post_id NOT IN (SELECT ID FROM wp_posts)

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论