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 ) : ?>