← All changes
|
includes/class-wp-optimize-install-or-update-notice.php
+3
-3
3.5.0
→
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; |