PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.6 28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 All 130 releases
← All changes | admin/ajax/class-yoast-dismissable-notice.php +7 -3 18.9 → trunk View file →
@@ -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 );