Skip to content

Commit

Permalink
v 2.50.6
Browse files Browse the repository at this point in the history
Base Settings v 0.17.5 :
- Fix post type in type post.
  • Loading branch information
Darklg committed Jul 12, 2023
1 parent 0755301 commit cd84b27
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions inc/WPUBaseSettings/WPUBaseSettings.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace wpubasesettings_0_17_4;
namespace wpubasesettings_0_17_5;

/*
Class Name: WPU Base Settings
Description: A class to handle native settings in WordPress admin
Version: 0.17.4
Version: 0.17.5
Class URI: https://github.com/WordPressUtilities/wpubaseplugin
Author: Darklg
Author URI: https://darklg.me/
Expand Down Expand Up @@ -161,6 +161,7 @@ public function set_datas($settings_details, $settings) {
$settings[$id]['label_check'] = isset($input['label_check']) ? $input['label_check'] : $settings[$id]['label'];
$settings[$id]['help'] = isset($input['help']) ? $input['help'] : '';
$settings[$id]['type'] = isset($input['type']) ? $input['type'] : 'text';
$settings[$id]['post_type'] = isset($input['post_type']) ? $input['post_type'] : 'post';
$settings[$id]['section'] = isset($input['section']) ? $input['section'] : $default_section;
$settings[$id]['datas'] = isset($input['datas']) && is_array($input['datas']) ? $input['datas'] : array(__('No'), __('Yes'));
$settings[$id]['editor_args'] = isset($input['editor_args']) && is_array($input['editor_args']) ? $input['editor_args'] : array();
Expand Down Expand Up @@ -223,6 +224,7 @@ public function add_settings() {
'lang_id' => $lang_id,
'label_for' => $id,
'required' => $this->settings[$id]['required'],
'post_type' => $this->settings[$id]['post_type'],
'datas' => $this->settings[$id]['datas'],
'type' => $this->settings[$id]['type'],
'help' => $this->settings[$id]['help'],
Expand Down
6 changes: 3 additions & 3 deletions wpubaseplugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Plugin URI: https://github.com/WordPressUtilities/wpubaseplugin
Update URI: https://github.com/WordPressUtilities/wpubaseplugin
Description: A framework for a WordPress plugin
Version: 2.50.5
Version: 2.50.6
Author: Darklg
Author URI: https://darklg.me/
Text Domain: wpubaseplugin
Expand All @@ -18,7 +18,7 @@

class WPUBasePlugin {

public $version = '2.50.5';
public $version = '2.50.6';

private $utilities_classes = array(
'messages' => array(
Expand All @@ -34,7 +34,7 @@ class WPUBasePlugin {
'name' => 'WPUBaseAdminPage'
),
'settings' => array(
'namespace' => 'wpubasesettings_0_17_4',
'namespace' => 'wpubasesettings_0_17_5',
'name' => 'WPUBaseSettings'
),
'cron' => array(
Expand Down

0 comments on commit cd84b27

Please sign in to comment.