mirror of
https://github.com/10h30/genesis-simple-sidebars.git
synced 2026-06-05 15:08:34 +09:00
Fix new sidebar not saving when using classic editor.
This commit is contained in:
committed by
Nathan Rice
parent
1707410622
commit
274ca9fd6f
@@ -57,7 +57,7 @@ class Genesis_Simple_Sidebars_Entry {
|
|||||||
public function metabox_save( $post_id, $post ) {
|
public function metabox_save( $post_id, $post ) {
|
||||||
|
|
||||||
// phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification
|
// phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification
|
||||||
$genesis_simple_sidebars = isset( $_POST['genesis_simple_sidebars'] ) ? sanitize_text_field( wp_unslash( $_POST['genesis_simple_sidebars'] ) ) : '';
|
$genesis_simple_sidebars = isset( $_POST['genesis_simple_sidebars'] ) ? array_map( 'sanitize_text_field', wp_unslash( $_POST['genesis_simple_sidebars'] ) ) : '';
|
||||||
|
|
||||||
if ( empty( $genesis_simple_sidebars ) ) {
|
if ( empty( $genesis_simple_sidebars ) ) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user