Skip to content

Commit

Permalink
Merge pull request #229 from Yoast/fix-welcome-notice
Browse files Browse the repository at this point in the history
DUPP-217 Fix welcome notice
  • Loading branch information
karlijnbok authored Jan 13, 2022
2 parents c540dbd + 783dd4e commit 0b66e7a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function duplicate_post_migrate_show_links_in_options( $defaults ) {
}

/**
* Shows the update notice.
* Shows the welcome notice.
*
* @global string $wp_version The WordPress version string.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/admin/options.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function get_options() {
'duplicate_post_show_notice' => [
'tab' => 'display',
'type' => 'checkbox',
'label' => \__( 'Show update notice', 'duplicate-post' ),
'label' => \__( 'Show welcome notice', 'duplicate-post' ),
'value' => 1,
],
'duplicate_post_show_link' => [
Expand Down
2 changes: 1 addition & 1 deletion src/admin/views/options.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class="nav-tab"
</td>
</tr>
<tr>
<th scope="row"><?php \esc_html_e( 'Update notice', 'duplicate-post' ); ?></th>
<th scope="row"><?php \esc_html_e( 'Welcome notice', 'duplicate-post' ); ?></th>
<td>
<?php
// phpcs:ignore WordPress.Security.EscapeOutput -- Already escapes correctly.
Expand Down
2 changes: 1 addition & 1 deletion src/ui/newsletter.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function newsletter_signup_form() {
'Yoast respects your privacy. Read %1$sour privacy policy%2$s on how we handle your personal information.',
'duplicate-post'
),
'<a href=https://yoa.st/4jf">',
'<a href="https://yoa.st/4jf" target="_blank">',
'</a>'
);

Expand Down

0 comments on commit 0b66e7a

Please sign in to comment.