Version Description
- Security Update
Download this release
Release Info
Developer | christianglingener |
Plugin | Toolset Types – Custom Post Types, Custom Fields and Taxonomies |
Version | 2.3.4 |
Comparing to | |
See all releases |
Code changes from version 2.3.3 to 2.3.4
application/controllers/page/dashboard.php
CHANGED
@@ -414,7 +414,7 @@ final class Types_Page_Dashboard extends Types_Page_Abstract {
|
|
414 |
return $string;
|
415 |
}
|
416 |
|
417 |
-
public function screen_settings_save($
|
418 |
if ( 'toolset_dashboard_screen_post_types' == $option ) {
|
419 |
if ( is_array( $_POST['toolset_dashboard_screen_post_types'] ) ) {
|
420 |
$toolset_dashboard_screen_post_types = array();
|
@@ -427,8 +427,9 @@ final class Types_Page_Dashboard extends Types_Page_Abstract {
|
|
427 |
$toolset_dashboard_screen_post_types = sanitize_text_field( $_POST['toolset_dashboard_screen_post_types'] );
|
428 |
}
|
429 |
$value = $toolset_dashboard_screen_post_types;
|
|
|
430 |
}
|
431 |
-
return $
|
432 |
}
|
433 |
|
434 |
|
414 |
return $string;
|
415 |
}
|
416 |
|
417 |
+
public function screen_settings_save($pre_save_value, $option, $value) {
|
418 |
if ( 'toolset_dashboard_screen_post_types' == $option ) {
|
419 |
if ( is_array( $_POST['toolset_dashboard_screen_post_types'] ) ) {
|
420 |
$toolset_dashboard_screen_post_types = array();
|
427 |
$toolset_dashboard_screen_post_types = sanitize_text_field( $_POST['toolset_dashboard_screen_post_types'] );
|
428 |
}
|
429 |
$value = $toolset_dashboard_screen_post_types;
|
430 |
+
return $value;
|
431 |
}
|
432 |
+
return $pre_save_value;
|
433 |
}
|
434 |
|
435 |
|
application/controllers/page/field_control.php
CHANGED
@@ -461,8 +461,6 @@ final class Types_Page_Field_Control extends Types_Page_Abstract {
|
|
461 |
'option' => self::SCREEN_OPTION_PER_PAGE_NAME,
|
462 |
);
|
463 |
add_screen_option( 'per_page', $args );
|
464 |
-
|
465 |
-
add_filter( 'set-screen-option', array( $this, 'set_screen_option' ), 10, 3);
|
466 |
}
|
467 |
|
468 |
|
461 |
'option' => self::SCREEN_OPTION_PER_PAGE_NAME,
|
462 |
);
|
463 |
add_screen_option( 'per_page', $args );
|
|
|
|
|
464 |
}
|
465 |
|
466 |
|
readme.txt
CHANGED
@@ -8,7 +8,7 @@ License: GPLv2
|
|
8 |
Requires at least: 3.7
|
9 |
Requires PHP: 5.3
|
10 |
Tested up to: 4.9
|
11 |
-
Stable tag: 2.3.
|
12 |
|
13 |
The complete and reliable plugin for managing custom post types, custom taxonomies and custom fields.
|
14 |
|
@@ -171,6 +171,9 @@ Additionally, Types is the only plugin that lets you define parent/child relatio
|
|
171 |
|
172 |
== Changelog ==
|
173 |
|
|
|
|
|
|
|
174 |
= 2.3.3 =
|
175 |
* Fixed an issue when saving checkboxes while relationship posts also contains checkboxes.
|
176 |
|
8 |
Requires at least: 3.7
|
9 |
Requires PHP: 5.3
|
10 |
Tested up to: 4.9
|
11 |
+
Stable tag: 2.3.4
|
12 |
|
13 |
The complete and reliable plugin for managing custom post types, custom taxonomies and custom fields.
|
14 |
|
171 |
|
172 |
== Changelog ==
|
173 |
|
174 |
+
= 2.3.4 =
|
175 |
+
* Security Update
|
176 |
+
|
177 |
= 2.3.3 =
|
178 |
* Fixed an issue when saving checkboxes while relationship posts also contains checkboxes.
|
179 |
|
vendor/toolset/types/admin.php
CHANGED
@@ -1758,7 +1758,18 @@ function wpcf_usort_reorder($a,$b)
|
|
1758 |
add_filter('set-screen-option', 'wpcf_table_set_option', 10, 3);
|
1759 |
function wpcf_table_set_option($status, $option, $value)
|
1760 |
{
|
1761 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1762 |
}
|
1763 |
|
1764 |
function wpcf_admin_screen( $post_type, $form_output = '')
|
1758 |
add_filter('set-screen-option', 'wpcf_table_set_option', 10, 3);
|
1759 |
function wpcf_table_set_option($status, $option, $value)
|
1760 |
{
|
1761 |
+
$allowed_options = array(
|
1762 |
+
'wpcf_cf_per_page',
|
1763 |
+
'wpcf_uf_per_page',
|
1764 |
+
WPCF_Page_Listing_Termmeta::SCREEN_OPTION_PER_PAGE_NAME,
|
1765 |
+
Types_Page_Field_Control::SCREEN_OPTION_PER_PAGE_NAME
|
1766 |
+
);
|
1767 |
+
|
1768 |
+
if( in_array( $option, $allowed_options ) ) {
|
1769 |
+
return $value;
|
1770 |
+
}
|
1771 |
+
|
1772 |
+
return $status;
|
1773 |
}
|
1774 |
|
1775 |
function wpcf_admin_screen( $post_type, $form_output = '')
|
vendor/toolset/types/includes/classes/page/listing/termmeta.php
CHANGED
@@ -142,8 +142,6 @@ final class WPCF_Page_Listing_Termmeta extends WPCF_Page_Listing_Abstract {
|
|
142 |
'option' => self::SCREEN_OPTION_PER_PAGE_NAME,
|
143 |
);
|
144 |
add_screen_option( 'per_page', $args );
|
145 |
-
|
146 |
-
add_filter( 'set-screen-option', array( $this, 'set_screen_option' ), 10, 3);
|
147 |
}
|
148 |
|
149 |
|
142 |
'option' => self::SCREEN_OPTION_PER_PAGE_NAME,
|
143 |
);
|
144 |
add_screen_option( 'per_page', $args );
|
|
|
|
|
145 |
}
|
146 |
|
147 |
|
wpcf.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://wordpress.org/extend/plugins/types/
|
|
5 |
Description: Toolset Types defines custom content in WordPress. Easily create custom post types, fields and taxonomy and connect everything together.
|
6 |
Author: OnTheGoSystems
|
7 |
Author URI: http://www.onthegosystems.com
|
8 |
-
Version: 2.3.
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Types is free software: you can redistribute it and/or modify
|
@@ -29,7 +29,7 @@ if ( ! function_exists( 'add_action' ) ) {
|
|
29 |
|
30 |
// version
|
31 |
if ( ! defined( 'TYPES_VERSION' ) ) {
|
32 |
-
define( 'TYPES_VERSION', '2.3.
|
33 |
}
|
34 |
|
35 |
// backward compatibility
|
5 |
Description: Toolset Types defines custom content in WordPress. Easily create custom post types, fields and taxonomy and connect everything together.
|
6 |
Author: OnTheGoSystems
|
7 |
Author URI: http://www.onthegosystems.com
|
8 |
+
Version: 2.3.4
|
9 |
License: GPLv2 or later
|
10 |
|
11 |
Types is free software: you can redistribute it and/or modify
|
29 |
|
30 |
// version
|
31 |
if ( ! defined( 'TYPES_VERSION' ) ) {
|
32 |
+
define( 'TYPES_VERSION', '2.3.4' );
|
33 |
}
|
34 |
|
35 |
// backward compatibility
|