我的数据库已被WP插件存储库中的All-in-One Event Calendar插件劫持。该插件已被删除,但在wp_options
表中留下了大量垃圾。虽然我可以删除一些选项,但插件已经在选项ID中注入了一些严重的内容我相信它具有核心相关性:user_roles
(option_id
99)和cron
({{1 106)。
下面是cron option_id
。有人可以看看,看看如何清理这些烂摊子? option_id
(一体化事件日历)是插件。我真的很茫然。
ai1ec
(106,'cron','a:12:{i:1351390114;a:1:{s:12:\"ai1ec_u_cron\";a:1:{s:32:\"40cd750bba9870f18aada2478b24840a\";a:3:{s:8:\"schedule\";s:6:\"hourly\";s:4:\"args\";a:0:{}s:8:\"interval\";i:3600;}}}i:1351390525;a:1:{s:25:\"ai1ec_facebook_cron_pages\";a:1:{s:32:\"5b7cb91948f8bf686b1a2b49d260e23e\";a:3:{s:8:\"schedule\";s:10:\"twicedaily\";s:4:\"args\";a:1:{i:0;s:4:\"page\";}s:8:\"interval\";i:43200;}}}i:1351392325;a:1:{s:26:\"ai1ec_facebook_cron_groups\";a:1:{s:32:\"440efcc24b7250fee903fb2f69981914\";a:3:{s:8:\"schedule\";s:10:\"twicedaily\";s:4:\"args\";a:1:{i:0;s:5:\"group\";}s:8:\"interval\";i:43200;}}}i:1351392373;a:3:{s:16:\"wp_version_check\";a:1:{s:32:\"40cd750bba9870f18aada2478b24840a\";a:3:{s:8:\"schedule\";s:10:\"twicedaily\";s:4:\"args\";a:0:{}s:8:\"interval\";i:43200;}}s:17:\"wp_update_plugins\";a:1:{s:32:\"40cd750bba9870f18aada2478b24840a\";a:3:{s:8:\"schedule\";s:10:\"twicedaily\";s:4:\"args\";a:0:{}s:8:\"interval\";i:43200;}}s:16:\"wp_update_themes\";a:1:{s:32:\"40cd750bba9870f18aada2478b24840a\";a:3:{s:8:\"schedule\";s:10:\"twicedaily\";s:4:\"args\";a:0:{}s:8:\"interval\";i:43200;}}}i:1351394125;a:1:{s:25:\"ai1ec_facebook_cron_users\";a:1:{s:32:\"fa7faa01ef3155dd51574f1d1e8eddd9\";a:3:{s:8:\"schedule\";s:10:\"twicedaily\";s:4:\"args\";a:1:{i:0;s:4:\"user\";}s:8:\"interval\";i:43200;}}}i:1351424436;a:1:{s:12:\"ai1ec_n_cron\";a:1:{s:32:\"40cd750bba9870f18aada2478b24840a\";a:3:{s:8:\"schedule\";s:5:\"daily\";s:4:\"args\";a:0:{}s:8:\"interval\";i:86400;}}}i:1351425083;a:1:{s:10:\"ai1ec_cron\";a:1:{s:32:\"40cd750bba9870f18aada2478b24840a\";a:3:{s:8:\"schedule\";s:5:\"daily\";s:4:\"args\";a:0:{}s:8:\"interval\";i:86400;}}}i:1351431925;a:1:{s:26:\"ai1ec_facebook_cron_events\";a:1:{s:32:\"40cd750bba9870f18aada2478b24840a\";a:3:{s:8:\"schedule\";s:10:\"twicedaily\";s:4:\"args\";a:0:{}s:8:\"interval\";i:43200;}}}i:1351435602;a:1:{s:19:\"wp_scheduled_delete\";a:1:{s:32:\"40cd750bba9870f18aada2478b24840a\";a:3:{s:8:\"schedule\";s:5:\"daily\";s:4:\"args\";a:0:{}s:8:\"interval\";i:86400;}}}i:1351450159;a:1:{s:30:\"wp_scheduled_auto_draft_delete\";a:1:{s:32:\"40cd750bba9870f18aada2478b24840a\";a:3:{s:8:\"schedule\";s:5:\"daily\";s:4:\"args\";a:0:{}s:8:\"interval\";i:86400;}}}i:1351465714;a:1:{s:12:\"ai1ec_n_cron\";a:1:{s:32:\"40cd750bba9870f18aada2478b24840a\";a:3:{s:8:\"schedule\";s:5:\"daily\";s:4:\"args\";a:0:{}s:8:\"interval\";i:86400;}}}s:7:\"version\";i:2;}','yes')
ID看起来更糟糕。 user_roles
再一次,到处都是。管理区域中还有一个“事件参与者”默认用户角色,无法删除。
ai1ec
答案 0 :(得分:1)
粘贴:
delete_option('ai1ec_settings');
我看到的其他选项
//from file:all-in-one-event-calendar\app\model\class-ai1ec-settings.php
update_option( 'ai1ec_settings', $this );
update_option( 'start_of_week', $this->week_start_day );
update_option( 'ai1ec_cron_version', get_option( 'ai1ec_cron_version' ) + 1 );
update_option( 'timezone_string', $this->timezone );
如果需要,您也可以删除它们。 当你通过apperance->编辑器或ftp更新你的functions.php文件时,当你访问该网站时,将运行函数文件,如果找到这些选项,wordpress将删除它们。 :)
然后只需删除函数文件中的调用..