← All changes
|
admin/class-admin-gutenberg-compatibility-notification.php
+3
-3
18.4.1
→
trunk
View file →
| @@ -57,9 +57,9 @@ | ||
| 57 | 57 | /** |
| 58 | 58 | * Filter: 'yoast_display_gutenberg_compat_notification' - Allows developer to disable the Gutenberg compatibility |
| 59 | 59 | * notification. |
| 60 | 60 | * |
| 61 | - * @api bool | |
| 61 | + * @param bool $display_notification | |
| 62 | 62 | */ |
| 63 | 63 | $display_notification = apply_filters( 'yoast_display_gutenberg_compat_notification', true ); |
| 64 | 64 | |
| 65 | 65 | if ( |
| @@ -87,9 +87,9 @@ | ||
| 87 | 87 | /* translators: %1$s expands to Yoast SEO, %2$s expands to the installed version, %3$s expands to Gutenberg */ |
| 88 | 88 | __( '%1$s detected you are using version %2$s of %3$s, please update to the latest version to prevent compatibility issues.', 'wordpress-seo' ), |
| 89 | 89 | 'Yoast SEO', |
| 90 | 90 | $this->compatibility_checker->get_installed_version(), |
| 91 | - 'Gutenberg' | |
| 91 | + 'Gutenberg', | |
| 92 | 92 | ); |
| 93 | 93 | |
| 94 | 94 | $notification = new Yoast_Notification( |
| 95 | 95 | $message, |
| @@ -96,9 +96,9 @@ | ||
| 96 | 96 | [ |
| 97 | 97 | 'id' => $this->notification_id, |
| 98 | 98 | 'type' => $level, |
| 99 | 99 | 'priority' => 1, |
| 100 | - ] | |
| 100 | + ], | |
| 101 | 101 | ); |
| 102 | 102 | |
| 103 | 103 | $this->notification_center->add_notification( $notification ); |
| 104 | 104 | } |