Skip to content

Commit c91e555

Browse files
committed
merge in 1.13.4
1 parent 0268154 commit c91e555

File tree

4 files changed

+21
-17
lines changed

4 files changed

+21
-17
lines changed

custom-post-type-ui.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
/**
1515
* Plugin Name: Custom Post Type UI
1616
* Plugin URI: https://github.com/WebDevStudios/custom-post-type-ui/
17-
* Description: Admin panel for creating custom post types and custom taxonomies in WordPress
17+
* Description: Admin UI panel for registering custom post types and taxonomies in WordPress
1818
* Author: WebDevStudios
19-
* Version: 1.13.3
19+
* Version: 1.13.4
2020
* Author URI: https://webdevstudios.com/
2121
* Text Domain: custom-post-type-ui
2222
* Domain Path: /languages
@@ -26,15 +26,13 @@
2626
// phpcs:disable WebDevStudios.All.RequireAuthor
2727
// phpcs:set WordPress.WP.I18n check_translator_comments false
2828

29-
30-
3129
// Exit if accessed directly.
3230
if ( ! defined( 'ABSPATH' ) ) {
3331
exit;
3432
}
3533

36-
define( 'CPT_VERSION', '1.13.3' ); // Left for legacy purposes.
37-
define( 'CPTUI_VERSION', '1.13.3' );
34+
define( 'CPT_VERSION', '1.13.4' ); // Left for legacy purposes.
35+
define( 'CPTUI_VERSION', '1.13.4' );
3836
define( 'CPTUI_WP_VERSION', get_bloginfo( 'version' ) );
3937

4038
/**

inc/post-types.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2351,7 +2351,7 @@ function cptui_process_post_type() {
23512351
} elseif ( isset( $_POST['cpt_delete'] ) ) {
23522352
check_admin_referer( 'cptui_addedit_post_type_nonce_action', 'cptui_addedit_post_type_nonce_field' );
23532353

2354-
$filtered_data = filter_input( INPUT_POST, 'cpt_custom_post_type', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_REQUIRE_ARRAY );
2354+
$filtered_data = filter_input( INPUT_POST, 'cpt_custom_post_type', FILTER_SANITIZE_SPECIAL_CHARS, FILTER_REQUIRE_ARRAY );
23552355
$result = cptui_delete_post_type( $filtered_data );
23562356
add_filter( 'cptui_post_type_deleted', '__return_true' );
23572357
}
@@ -2394,8 +2394,8 @@ function cptui_do_convert_post_type_posts() {
23942394
if ( apply_filters( 'cptui_convert_post_type_posts', false ) ) {
23952395
check_admin_referer( 'cptui_addedit_post_type_nonce_action', 'cptui_addedit_post_type_nonce_field' );
23962396

2397-
$original = filter_input( INPUT_POST, 'cpt_original', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
2398-
$new = filter_input( INPUT_POST, 'cpt_custom_post_type', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_REQUIRE_ARRAY );
2397+
$original = filter_input( INPUT_POST, 'cpt_original', FILTER_SANITIZE_SPECIAL_CHARS );
2398+
$new = filter_input( INPUT_POST, 'cpt_custom_post_type', FILTER_SANITIZE_SPECIAL_CHARS, FILTER_REQUIRE_ARRAY );
23992399

24002400
// Return early if either fails to successfully validate.
24012401
if ( ! $original || ! $new ) {
@@ -2455,7 +2455,7 @@ function cptui_filtered_post_type_post_global() {
24552455

24562456
$items_arrays = array_merge( $default_arrays, $third_party_items_arrays );
24572457
foreach ( $items_arrays as $item ) {
2458-
$first_result = filter_input( INPUT_POST, $item, FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_REQUIRE_ARRAY );
2458+
$first_result = filter_input( INPUT_POST, $item, FILTER_SANITIZE_SPECIAL_CHARS, FILTER_REQUIRE_ARRAY );
24592459

24602460
if ( $first_result ) {
24612461
$filtered_data[ $item ] = $first_result;
@@ -2475,7 +2475,7 @@ function cptui_filtered_post_type_post_global() {
24752475
$items_string = array_merge( $default_strings, $third_party_items_strings );
24762476

24772477
foreach ( $items_string as $item ) {
2478-
$second_result = filter_input( INPUT_POST, $item, FILTER_SANITIZE_FULL_SPECIAL_CHARS );
2478+
$second_result = filter_input( INPUT_POST, $item, FILTER_SANITIZE_SPECIAL_CHARS );
24792479
if ( $second_result ) {
24802480
$filtered_data[ $item ] = $second_result;
24812481
}

inc/taxonomies.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,7 +1976,7 @@ function cptui_process_taxonomy() {
19761976
} elseif ( isset( $_POST['cpt_delete'] ) ) {
19771977
check_admin_referer( 'cptui_addedit_taxonomy_nonce_action', 'cptui_addedit_taxonomy_nonce_field' );
19781978

1979-
$filtered_data = filter_input( INPUT_POST, 'cpt_custom_tax', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_REQUIRE_ARRAY );
1979+
$filtered_data = filter_input( INPUT_POST, 'cpt_custom_tax', FILTER_SANITIZE_SPECIAL_CHARS, FILTER_REQUIRE_ARRAY );
19801980
$result = cptui_delete_taxonomy( $filtered_data );
19811981
add_filter( 'cptui_taxonomy_deleted', '__return_true' );
19821982
}
@@ -2016,8 +2016,8 @@ function cptui_do_convert_taxonomy_terms() {
20162016
if ( apply_filters( 'cptui_convert_taxonomy_terms', false ) ) {
20172017
check_admin_referer( 'cptui_addedit_taxonomy_nonce_action', 'cptui_addedit_taxonomy_nonce_field' );
20182018

2019-
$original = filter_input( INPUT_POST, 'tax_original', FILTER_SANITIZE_FULL_SPECIAL_CHARS );
2020-
$new = filter_input( INPUT_POST, 'cpt_custom_tax', FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_REQUIRE_ARRAY );
2019+
$original = filter_input( INPUT_POST, 'tax_original', FILTER_SANITIZE_SPECIAL_CHARS );
2020+
$new = filter_input( INPUT_POST, 'cpt_custom_tax', FILTER_SANITIZE_SPECIAL_CHARS, FILTER_REQUIRE_ARRAY );
20212021

20222022
// Return early if either fails to successfully validate.
20232023
if ( ! $original || ! $new ) {
@@ -2076,7 +2076,7 @@ function cptui_filtered_taxonomy_post_global() {
20762076

20772077
$items_arrays = array_merge( $default_arrays, $third_party_items_arrays );
20782078
foreach ( $items_arrays as $item ) {
2079-
$first_result = filter_input( INPUT_POST, $item, FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_REQUIRE_ARRAY );
2079+
$first_result = filter_input( INPUT_POST, $item, FILTER_SANITIZE_SPECIAL_CHARS, FILTER_REQUIRE_ARRAY );
20802080

20812081
if ( $first_result ) {
20822082
$filtered_data[ $item ] = $first_result;
@@ -2095,7 +2095,7 @@ function cptui_filtered_taxonomy_post_global() {
20952095

20962096
$items_strings = array_merge( $default_strings, $third_party_items_strings );
20972097
foreach ( $items_strings as $item ) {
2098-
$second_result = filter_input( INPUT_POST, $item, FILTER_SANITIZE_FULL_SPECIAL_CHARS );
2098+
$second_result = filter_input( INPUT_POST, $item, FILTER_SANITIZE_SPECIAL_CHARS );
20992099
if ( $second_result ) {
21002100
$filtered_data[ $item ] = $second_result;
21012101
}

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.9
66
Tested up to: 6.1.1
7-
Stable tag: 1.13.3
7+
Stable tag: 1.13.4
88
License: GPL-2.0+
99
Requires PHP: 5.6
1010

@@ -36,6 +36,9 @@ Custom Post Type UI development is managed on GitHub, with official releases pub
3636

3737
== Changelog ==
3838

39+
= 1.13.4 - 2022-12-16 =
40+
* Fixed: Character encoding issue on CPTUI setting save in conjunction with PHP8 compatibility.
41+
3942
= 1.13.3 - 2022-12-15 =
4043
* Fixed: Multiple PHP8 compatibility notices and warnings.
4144
* Fixed: "Invalid argument for foreach" based notices around labels.
@@ -88,6 +91,9 @@ Custom Post Type UI development is managed on GitHub, with official releases pub
8891

8992
== Upgrade Notice ==
9093

94+
= 1.13.4 - 2022-12-16 =
95+
* Fixed: Character encoding issue on CPTUI setting save in conjunction with PHP8 compatibility.
96+
9197
= 1.13.3 - 2022-12-15 =
9298
* Fixed: Multiple PHP8 compatibility notices and warnings.
9399
* Fixed: "Invalid argument for foreach" based notices around labels.

0 commit comments

Comments
 (0)