Skip to content

Commit ed9b39e

Browse files
committed
merge 1.10.1 release
1 parent fe0f533 commit ed9b39e

File tree

3 files changed

+36
-19
lines changed

3 files changed

+36
-19
lines changed

custom-post-type-ui.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
1717
* Description: Admin panel for creating custom post types and custom taxonomies in WordPress
1818
* Author: WebDevStudios
19-
* Version: 1.10.0
19+
* Version: 1.10.1
2020
* Author URI: https://webdevstudios.com/
2121
* Text Domain: custom-post-type-ui
2222
* Domain Path: /languages
@@ -30,8 +30,8 @@
3030
exit;
3131
}
3232

33-
define( 'CPT_VERSION', '1.10.0' ); // Left for legacy purposes.
34-
define( 'CPTUI_VERSION', '1.10.0' );
33+
define( 'CPT_VERSION', '1.10.1' ); // Left for legacy purposes.
34+
define( 'CPTUI_VERSION', '1.10.1' );
3535
define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
3636

3737
/**

inc/post-types.php

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2049,28 +2049,39 @@ function cptui_updated_post_type_slug_exists( $slug_exists, $post_type_slug = ''
20492049
function cptui_filtered_post_type_post_global() {
20502050
$filtered_data = [];
20512051

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-
) {
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 ) {
20612066
$first_result = filter_input( INPUT_POST, $item, FILTER_SANITIZE_STRING, FILTER_REQUIRE_ARRAY );
20622067

20632068
if ( $first_result ) {
20642069
$filtered_data[ $item ] = $first_result;
20652070
}
20662071
}
20672072

2068-
foreach (
2069-
[
2070-
'cpt_original',
2071-
'cpt_type_status',
2072-
] as $item
2073-
) {
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 ) {
20742085
$second_result = filter_input( INPUT_POST, $item, FILTER_SANITIZE_STRING );
20752086
if ( $second_result ) {
20762087
$filtered_data[ $item ] = $second_result;

readme.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
44
Tags: custom post types, CPT, CMS, post, types, post type, taxonomy, tax, custom, content types, post types
55
Requires at least: 5.5
66
Tested up to: 5.8.1
7-
Stable tag: 1.10.0
7+
Stable tag: 1.10.1
88
License: GPL-2.0+
99
Requires PHP: 5.6
1010

@@ -31,6 +31,9 @@ Official development of Custom Post Type UI is on GitHub, with official stable r
3131

3232
== Changelog ==
3333

34+
= 1.10.1 - 2021-12-07 =
35+
* Added: Filter to our PHP Global sanitization function for Extended usage.
36+
3437
= 1.10.0 - 2021-10-04 =
3538
* Added: Dashicon picker with popup. - Props arshidkv12
3639
* 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
5861

5962
== Upgrade Notice ==
6063

64+
= 1.10.1 - 2021-12-07 =
65+
* Added: Filter to our PHP Global sanitization function for Extended usage.
66+
6167
= 1.10.0 - 2021-10-04 =
6268
* Added: Dashicon picker with popup. - Props arshidkv12
6369
* Added: Tag Cloud widget support for custom taxonomies.

0 commit comments

Comments
 (0)