Skip to content

Commit

Permalink
Move activation failed notice to the new dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
leonidasmi committed Sep 20, 2024
1 parent 9d5ee06 commit 54fa28e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wp-seo-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -563,8 +563,14 @@ function yoast_wpseo_missing_filter_notice() {
* @return void
*/
function yoast_wpseo_activation_failed_notice( $message ) {
$title = sprintf(
/* translators: %s: Yoast SEO. */
esc_html__( '%s activation failed', 'wordpress-seo' ),
'Yoast SEO'
);

// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- This function is only called in 3 places that are safe.
echo '<div class="error"><p>' . esc_html__( 'Activation failed:', 'wordpress-seo' ) . ' ' . strip_tags( $message, '<a>' ) . '</p></div>';
echo '<div class="error yoast-migrated-notice"><h4 class="yoast-notice-migrated-header">' . $title . '</h4><div class="notice-yoast-content"><p>' . strip_tags( $message, '<a>' ) . '</p></div></div>';
}

/**
Expand Down

0 comments on commit 54fa28e

Please sign in to comment.