Skip to content

Commit

Permalink
Merge pull request #337 from Yoast/JRF/various-small-bug-fixes
Browse files Browse the repository at this point in the history
Various small bug fixes
  • Loading branch information
enricobattocchi authored Nov 25, 2023
2 parents 399d9a0 + 4bfa2e0 commit 02c05ef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions admin-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ function duplicate_post_plugin_upgrade() {
}

$meta_blacklist = explode( ',', get_option( 'duplicate_post_blacklist' ) );
if ( $meta_blacklist === '' ) {
$meta_blacklist = [];
}
$meta_blacklist = array_map( 'trim', $meta_blacklist );
if ( in_array( '_wp_page_template', $meta_blacklist, true ) ) {
update_option( 'duplicate_post_copytemplate', 0 );
Expand Down
2 changes: 1 addition & 1 deletion src/ui/column.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function register_hooks() {
\add_filter( "manage_{$enabled_post_type}_posts_columns", [ $this, 'add_original_column' ] );
\add_action( "manage_{$enabled_post_type}_posts_custom_column", [ $this, 'show_original_item' ], 10, 2 );
}
\add_action( 'quick_edit_custom_box', [ $this, 'quick_edit_remove_original' ], 10, 2 );
\add_action( 'quick_edit_custom_box', [ $this, 'quick_edit_remove_original' ] );
\add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue_scripts' ] );
\add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue_styles' ] );
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/newsletter.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static function newsletter_signup_form() {
$html = '
<!-- Begin Newsletter Signup Form -->
<form method="post" id="newsletter-subscribe-form" name="newsletter-subscribe-form" novalidate>
' . \wp_nonce_field( 'newsletter', 'newsletter_nonce' ) . '
' . \wp_nonce_field( 'newsletter', 'newsletter_nonce', true, false ) . '
<p>' . $copy . '</p>
<div class="newsletter-field-group" style="display: flex; flex-direction: column">
<label for="newsletter-email" style="margin: 0 0 4px 0;"><strong>' . $email_label . '</strong></label>
Expand Down

0 comments on commit 02c05ef

Please sign in to comment.