PluginProbe
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance / 4.7.0
WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance v4.7.0
4.7.0 4.6.1 4.6.0 4.5.5 4.5.4 4.5.3 4.5.2 3.2.20 3.2.21 3.2.22 3.2.3 3.2.5 3.2.6 3.2.7 3.2.9 3.3.0 3.3.1 3.3.2 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.7.0 3.7.1 All 111 releases
← All changes | includes/class-wp-optimize-install-or-update-notice.php +3 -3 3.4.2 → 4.7.0 View file →
@@ -40,14 +40,14 @@
40 40 * @return boolean
41 41 */
42 42 public function show_current_notice() {
43 43 // Check the option
44 - $latest_saved_notice = $this->options->get_option('install-or-update-notice-version', false);
44 + $latest_saved_notice = $this->options->get_option('install-or-update-notice-version');
45 45 if ($latest_saved_notice && version_compare($latest_saved_notice, $this->version, '>=')) {
46 46 return false;
47 47 }
48 48
49 - $notice_show_time = $this->options->get_option('install-or-update-notice-show-time', false);
49 + $notice_show_time = $this->options->get_option('install-or-update-notice-show-time');
50 50
51 51 // If notice has been showing for more than 14days, automatically dismiss it.
52 52 if ($notice_show_time && (time() - $notice_show_time) > (14 * 86400)) {
53 53 $this->dismiss();
@@ -82,9 +82,9 @@
82 82 *
83 83 * @return boolean
84 84 */
85 85 private function is_new_install() {
86 - if ($this->options->get_option('newly-activated', false)) {
86 + if ($this->options->get_option('newly-activated')) {
87 87 return true;
88 88 }
89 89
90 90 return false;