From 82d24251649b5e841f211aff3455d424274ded83 Mon Sep 17 00:00:00 2001 From: Jay Wood Date: Fri, 30 Sep 2016 13:15:54 -0400 Subject: [PATCH] Set function to be specific for now --- includes/admin.php | 2 +- includes/settings.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/admin.php b/includes/admin.php index 9763069..8d118e6 100644 --- a/includes/admin.php +++ b/includes/admin.php @@ -447,7 +447,7 @@ public function get_settings_config() { 'id' => 'cat_list', 'name' => __( 'Category restrictions', 'content-warning-v2' ), 'desc' => __( 'Select categories that you would like to restrict with the dialog.', 'content-warning-v2' ), - 'type' => 'select2', + 'type' => 'select2_multi', 'options' => $this->get_cat_list() ), ), diff --git a/includes/settings.php b/includes/settings.php index 91f7c03..94973a0 100644 --- a/includes/settings.php +++ b/includes/settings.php @@ -279,7 +279,7 @@ public function editor( $args = array() ) { * * @author JayWood */ - public function select2( $args = array() ) { + public function select2_multi( $args = array() ) { $args = $this->get_default_args( $args ); $field_id = $args['id']; @@ -293,15 +293,15 @@ public function select2( $args = array() ) { $option_value = get_option( $field_id, $field_id, $default ); ?> - $v ) : ?>