PluginProbe
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO / 2.9.0
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO v2.9.0
2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 trunk 1.0.0 1.0.1 All 51 releases
← All changes | includes/seo/class-email-report-scheduler.php +7 -2 2.0.0 → 2.9.0 View file →
@@ -77,10 +77,15 @@
77 77 $this->config->update_schedule(null, $next);
78 78 return;
79 79 }
80 80
81 - $next_ts = strtotime((string) $config['next_scheduled_at']);
82 - if ($next_ts && $next_ts > time()) {
81 + // next_scheduled_at is a site-local wall clock (written with wp_date()).
82 + // strtotime() would resolve it against PHP's default timezone (UTC
83 + // under WordPress) and shift the send by the site's offset — early on
84 + // a negative offset, late on a positive one. Interpret it in the site
85 + // timezone, the same way next_run_iso() reports it to the UI.
86 + $next_ts = (int) get_gmt_from_date((string) $config['next_scheduled_at'], 'U');
87 + if ($next_ts > 0 && $next_ts > time()) {
83 88 return;
84 89 }
85 90
86 91 $this->generator->generate_for_due();