@@ -36,6 +36,7 @@ public function __construct() {
3636
3737 add_action ( 'admin_enqueue_scripts ' , [ $ this , 'enqueue_dismissible ' ] );
3838 add_action ( 'admin_init ' , [ $ this , 'unsupported_php_notice ' ], 15 );
39+ add_action ( 'admin_init ' , [ $ this , 'remove_translations_notification ' ], 15 );
3940 add_action ( 'admin_init ' , [ $ this ->asset_manager , 'register_assets ' ] );
4041 add_action ( 'admin_init ' , [ $ this , 'show_hook_deprecation_warnings ' ] );
4142 add_action ( 'admin_init ' , [ 'WPSEO_Plugin_Conflict ' , 'hook_check_for_plugin_conflicts ' ] );
@@ -57,6 +58,16 @@ public function enqueue_dismissible() {
5758 $ this ->asset_manager ->enqueue_style ( 'dismissible ' );
5859 }
5960
61+ /**
62+ * Removes any notification for incomplete translations.
63+ *
64+ * @return void
65+ */
66+ public function remove_translations_notification () {
67+ $ notification_center = Yoast_Notification_Center::get ();
68+ $ notification_center ->remove_notification_by_id ( 'i18nModuleTranslationAssistance ' );
69+ }
70+
6071 /**
6172 * Creates an unsupported PHP version notification in the notification center.
6273 *
@@ -320,68 +331,4 @@ public function add_publish_box_section( $post ) {
320331 do_action ( 'wpseo_publishbox_misc_actions ' , $ post );
321332 }
322333 }
323-
324- /* ********************* DEPRECATED METHODS ********************* */
325-
326- /**
327- * Notify about the default tagline if the user hasn't changed it.
328- *
329- * @deprecated 13.2
330- * @codeCoverageIgnore
331- */
332- public function tagline_notice () {
333- _deprecated_function ( __METHOD__ , 'WPSEO 13.2 ' );
334- }
335-
336- /**
337- * Returns whether or not the site has the default tagline.
338- *
339- * @deprecated 13.2
340- * @codeCoverageIgnore
341- *
342- * @return bool
343- */
344- public function has_default_tagline () {
345- _deprecated_function ( __METHOD__ , 'WPSEO 13.2 ' );
346-
347- $ blog_description = get_bloginfo ( 'description ' );
348- $ default_blog_description = 'Just another WordPress site ' ;
349-
350- // We are using the WordPress internal translation.
351- $ translated_blog_description = __ ( 'Just another WordPress site ' , 'default ' );
352-
353- return $ translated_blog_description === $ blog_description || $ default_blog_description === $ blog_description ;
354- }
355-
356- /**
357- * Shows an alert when the permalink doesn't contain %postname%.
358- *
359- * @deprecated 13.2
360- * @codeCoverageIgnore
361- */
362- public function permalink_notice () {
363- _deprecated_function ( __METHOD__ , 'WPSEO 13.2 ' );
364- }
365-
366- /**
367- * Add an alert if the blog is not publicly visible.
368- *
369- * @deprecated 14.1
370- * @codeCoverageIgnore
371- */
372- public function blog_public_notice () {
373- _deprecated_function ( __METHOD__ , 'WPSEO 14.1 ' );
374- }
375-
376- /**
377- * Handles the notifiers for the dashboard page.
378- *
379- * @deprecated 14.1
380- * @codeCoverageIgnore
381- *
382- * @return void
383- */
384- public function handle_notifications () {
385- _deprecated_function ( __METHOD__ , 'WPSEO 14.1 ' );
386- }
387334}
0 commit comments