Custom Post Type UI - Version 1.10.1

Version Description

  • 2021-12-07 =
  • Added: Filter to our PHP Global sanitization function for Extended usage.
Download this release

Release Info

Developer tw2113
Plugin Icon 128x128 Custom Post Type UI
Version 1.10.1
Comparing to
See all releases

Code changes from version 1.10.0 to 1.10.1

Files changed (3) hide show
  1. custom-post-type-ui.php +3 -3
  2. inc/post-types.php +26 -15
  3. readme.txt +7 -1
custom-post-type-ui.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
17
  * Description: Admin panel for creating custom post types and custom taxonomies in WordPress
18
  * Author: WebDevStudios
19
- * Version: 1.10.0
20
  * Author URI: https://webdevstudios.com/
21
  * Text Domain: custom-post-type-ui
22
  * Domain Path: /languages
@@ -30,8 +30,8 @@ if ( ! defined( 'ABSPATH' ) ) {
30
  exit;
31
  }
32
 
33
- define( 'CPT_VERSION', '1.10.0' ); // Left for legacy purposes.
34
- define( 'CPTUI_VERSION', '1.10.0' );
35
  define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
36
 
37
  /**
16
  * Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
17
  * Description: Admin panel for creating custom post types and custom taxonomies in WordPress
18
  * Author: WebDevStudios
19
+ * Version: 1.10.1
20
  * Author URI: https://webdevstudios.com/
21
  * Text Domain: custom-post-type-ui
22
  * Domain Path: /languages
30
  exit;
31
  }
32
 
33
+ define( 'CPT_VERSION', '1.10.1' ); // Left for legacy purposes.
34
+ define( 'CPTUI_VERSION', '1.10.1' );
35
  define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
36
 
37
  /**
inc/post-types.php CHANGED
@@ -2049,15 +2049,20 @@ add_filter( 'cptui_post_type_slug_exists', 'cptui_updated_post_type_slug_exists'
2049
  function cptui_filtered_post_type_post_global() {
2050
  $filtered_data = [];
2051
 
2052
- foreach(
2053
- [
2054
- 'cpt_custom_post_type',
2055
- 'cpt_labels',
2056
- 'cpt_supports',
2057
- 'cpt_addon_taxes',
2058
- 'update_post_types',
2059
- ] as $item
2060
- ) {
 
 
 
 
 
2061
  $first_result = filter_input( INPUT_POST, $item, FILTER_SANITIZE_STRING, FILTER_REQUIRE_ARRAY );
2062
 
2063
  if ( $first_result ) {
@@ -2065,12 +2070,18 @@ function cptui_filtered_post_type_post_global() {
2065
  }
2066
  }
2067
 
2068
- foreach (
2069
- [
2070
- 'cpt_original',
2071
- 'cpt_type_status',
2072
- ] as $item
2073
- ) {
 
 
 
 
 
 
2074
  $second_result = filter_input( INPUT_POST, $item, FILTER_SANITIZE_STRING );
2075
  if ( $second_result ) {
2076
  $filtered_data[ $item ] = $second_result;
2049
  function cptui_filtered_post_type_post_global() {
2050
  $filtered_data = [];
2051
 
2052
+ $default_arrays = [
2053
+ 'cpt_custom_post_type',
2054
+ 'cpt_labels',
2055
+ 'cpt_supports',
2056
+ 'cpt_addon_taxes',
2057
+ 'update_post_types',
2058
+ ];
2059
+ $third_party_items_arrays = apply_filters(
2060
+ 'cptui_filtered_post_type_post_global_arrays',
2061
+ (array) []
2062
+ );
2063
+
2064
+ $items_arrays = array_merge( $default_arrays, $third_party_items_arrays );
2065
+ foreach( $items_arrays as $item ) {
2066
  $first_result = filter_input( INPUT_POST, $item, FILTER_SANITIZE_STRING, FILTER_REQUIRE_ARRAY );
2067
 
2068
  if ( $first_result ) {
2070
  }
2071
  }
2072
 
2073
+ $default_strings = [
2074
+ 'cpt_original',
2075
+ 'cpt_type_status',
2076
+ ];
2077
+ $third_party_items_strings = apply_filters(
2078
+ 'cptui_filtered_post_type_post_global_strings',
2079
+ (array) []
2080
+ );
2081
+
2082
+ $items_string = array_merge( $default_strings, $third_party_items_strings );
2083
+
2084
+ foreach ( $items_string as $item ) {
2085
  $second_result = filter_input( INPUT_POST, $item, FILTER_SANITIZE_STRING );
2086
  if ( $second_result ) {
2087
  $filtered_data[ $item ] = $second_result;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: custom post types, CPT, CMS, post, types, post type, taxonomy, tax, custom, content types, post types
5
  Requires at least: 5.5
6
  Tested up to: 5.8.1
7
- Stable tag: 1.10.0
8
  License: GPL-2.0+
9
  Requires PHP: 5.6
10
 
@@ -31,6 +31,9 @@ Official development of Custom Post Type UI is on GitHub, with official stable r
31
 
32
  == Changelog ==
33
 
 
 
 
34
  = 1.10.0 - 2021-10-04 =
35
  * Added: Dashicon picker with popup. - Props arshidkv12
36
  * Added: Tag Cloud widget support for custom taxonomies.
@@ -58,6 +61,9 @@ Official development of Custom Post Type UI is on GitHub, with official stable r
58
 
59
  == Upgrade Notice ==
60
 
 
 
 
61
  = 1.10.0 - 2021-10-04 =
62
  * Added: Dashicon picker with popup. - Props arshidkv12
63
  * Added: Tag Cloud widget support for custom taxonomies.
4
  Tags: custom post types, CPT, CMS, post, types, post type, taxonomy, tax, custom, content types, post types
5
  Requires at least: 5.5
6
  Tested up to: 5.8.1
7
+ Stable tag: 1.10.1
8
  License: GPL-2.0+
9
  Requires PHP: 5.6
10
 
31
 
32
  == Changelog ==
33
 
34
+ = 1.10.1 - 2021-12-07 =
35
+ * Added: Filter to our PHP Global sanitization function for Extended usage.
36
+
37
  = 1.10.0 - 2021-10-04 =
38
  * Added: Dashicon picker with popup. - Props arshidkv12
39
  * Added: Tag Cloud widget support for custom taxonomies.
61
 
62
  == Upgrade Notice ==
63
 
64
+ = 1.10.1 - 2021-12-07 =
65
+ * Added: Filter to our PHP Global sanitization function for Extended usage.
66
+
67
  = 1.10.0 - 2021-10-04 =
68
  * Added: Dashicon picker with popup. - Props arshidkv12
69
  * Added: Tag Cloud widget support for custom taxonomies.