| @@ -15,9 +15,9 @@ | ||
| 15 | 15 | * Notice type toggle value for user notices. |
| 16 | 16 | * |
| 17 | 17 | * @var string |
| 18 | 18 | */ |
| 19 | - const FOR_USER = 'user_meta'; | |
| 19 | + public const FOR_USER = 'user_meta'; | |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * Notice type toggle value for network notices. |
| 23 | 23 | * |
| @@ -22,9 +22,9 @@ | ||
| 22 | 22 | * Notice type toggle value for network notices. |
| 23 | 23 | * |
| 24 | 24 | * @var string |
| 25 | 25 | */ |
| 26 | - const FOR_NETWORK = 'site_option'; | |
| 26 | + public const FOR_NETWORK = 'site_option'; | |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * Notice type toggle value for site notices. |
| 30 | 30 | * |
| @@ -29,9 +29,9 @@ | ||
| 29 | 29 | * Notice type toggle value for site notices. |
| 30 | 30 | * |
| 31 | 31 | * @var string |
| 32 | 32 | */ |
| 33 | - const FOR_SITE = 'option'; | |
| 33 | + public const FOR_SITE = 'option'; | |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * Name of the notice that will be dismissed. |
| 37 | 37 | * |
| @@ -60,8 +60,10 @@ | ||
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * Handles the dismiss notice request. |
| 64 | + * | |
| 65 | + * @return void | |
| 64 | 66 | */ |
| 65 | 67 | public function dismiss_notice() { |
| 66 | 68 | check_ajax_referer( 'wpseo-dismiss-' . $this->notice_name ); |
| 67 | 69 | |
| @@ -71,8 +73,10 @@ | ||
| 71 | 73 | } |
| 72 | 74 | |
| 73 | 75 | /** |
| 74 | 76 | * Storing the dismissed value in the database. The target location is based on the set notification type. |
| 77 | + * | |
| 78 | + * @return void | |
| 75 | 79 | */ |
| 76 | 80 | private function save_dismissed() { |
| 77 | 81 | if ( $this->notice_type === self::FOR_SITE ) { |
| 78 | 82 | update_option( 'wpseo_dismiss_' . $this->notice_name, 1 ); |