Skip to content

Commit

Permalink
v 2.54.1
Browse files Browse the repository at this point in the history
Base Settings v 0.17.6 :
- fix lang parameter for type page
  • Loading branch information
Darklg committed Aug 21, 2023
1 parent fbaa126 commit 396d61e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions inc/WPUBaseSettings/WPUBaseSettings.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
namespace wpubasesettings_0_17_5;
namespace wpubasesettings_0_17_6;

/*
Class Name: WPU Base Settings
Description: A class to handle native settings in WordPress admin
Version: 0.17.5
Version: 0.17.6
Class URI: https://github.com/WordPressUtilities/wpubaseplugin
Author: Darklg
Author URI: https://darklg.me/
Expand Down Expand Up @@ -365,12 +365,14 @@ public function render__field($args = array()) {
break;
case 'post':
case 'page':
wp_dropdown_pages(array(
$code_dropdown = wp_dropdown_pages(array(
'echo' => false,
'name' => $name_val,
'id' => $args['id'],
'selected' => $value,
'post_type' => isset($args['post_type']) ? $args['post_type'] : $args['type']
));
echo str_replace('<select ', '<select ' . $attr, $code_dropdown);
break;
case 'select':
echo '<select ' . $name . ' ' . $id . '>';
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.54.0
Version: 2.54.1
Author: Darklg
Author URI: https://darklg.me/
Text Domain: wpubaseplugin
Expand All @@ -18,7 +18,7 @@

class WPUBasePlugin {

public $version = '2.54.0';
public $version = '2.54.1';

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

0 comments on commit 396d61e

Please sign in to comment.