Skip to content

Commit

Permalink
🐛 Use show_ui to show CPT in CPO.
Browse files Browse the repository at this point in the history
  • Loading branch information
daomapsieucap committed Jun 15, 2022
1 parent f58277f commit b64cd18
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
== Changelog ==

= 2.0.8 =
*Release Date - 15 June 2022*

* Fixed: Use `show_ui` to show CPT in CPO.

= 2.0.7 =
*Release Date - 20 May 2022*

Expand Down
4 changes: 2 additions & 2 deletions fiberadmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Fiber Admin
* Plugin URI: https://wordpress.org/plugins/fiber-admin/
* Description: 💈 Bring multiple customization features to make your own WordPress admin.
* Version: 2.0.7
* Version: 2.0.8
* Requires at least: 5.2
* Requires PHP: 7.0
* Author: Dao
Expand All @@ -25,7 +25,7 @@
* Definitions
*/

const FIBERADMIN_VERSION = '2.0.7';
const FIBERADMIN_VERSION = '2.0.8';
const FIBERADMIN_DEV_MODE = false;
const FIBERADMIN_FILENAME = __FILE__;
define("FIBERADMIN_DIR", plugin_dir_path(__FILE__));
Expand Down
2 changes: 1 addition & 1 deletion includes/settings/cpo.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function fiad_section_info(){
}

public function fiad_cpo_post_types(){
$post_types = get_post_types(array('public' => true), 'objects');
$post_types = get_post_types(array('show_ui' => true), 'objects');
$selected_post_types = fiad_get_cpo_option('post_types');
if(!$selected_post_types){
$selected_post_types = array();
Expand Down
8 changes: 4 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: white label, admin tool, duplicate post, content protection
Requires at least: 4.7
Tested up to: 5.9.3
Requires PHP: 7.0
Stable tag: 2.0.7
Stable tag: 2.0.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -46,7 +46,7 @@ At the first time using this setting, Fiber Admin will ask you to save it to cre

== Changelog ==

= 2.0.7 =
*Release Date - 20 May 2022*
= 2.0.8 =
*Release Date - 15 June 2022*

* Fixed: Fix setting white label link color not working.
* Fixed: Use `show_ui` to show CPT in CPO.

0 comments on commit b64cd18

Please sign in to comment.