Version Description
June 8th 2018 =
Fixed: Records added modally via DFV's 'Add New' are not selected and don't refresh list view in 2.7.5, #5014 (@sc0ttkclark, @pglewis)
Download this release
Release Info
Developer | pglewis |
Plugin | Pods – Custom Content Types and Fields |
Version | 2.7.6 |
Comparing to | |
See all releases |
Code changes from version 2.7.5 to 2.7.6
- classes/fields/pick.php +14 -4
- init.php +2 -2
- readme.txt +5 -1
classes/fields/pick.php
CHANGED
@@ -1299,11 +1299,21 @@ class PodsField_Pick extends PodsField {
|
|
1299 |
$selected = false;
|
1300 |
|
1301 |
if ( is_array( $args->value ) ) {
|
1302 |
-
|
1303 |
-
|
1304 |
|
1305 |
-
|
1306 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1307 |
}
|
1308 |
} elseif ( (string) $item_id === (string) $args->value ) {
|
1309 |
$selected = true;
|
1299 |
$selected = false;
|
1300 |
|
1301 |
if ( is_array( $args->value ) ) {
|
1302 |
+
if ( ! isset( $args->value[0] ) ) {
|
1303 |
+
$keys = array_map( 'strval', array_keys( $args->value ) );
|
1304 |
|
1305 |
+
if ( in_array( (string) $item_id, $keys, true ) ) {
|
1306 |
+
$selected = true;
|
1307 |
+
}
|
1308 |
+
}
|
1309 |
+
|
1310 |
+
if ( ! $selected ) {
|
1311 |
+
// Cast values in array as string.
|
1312 |
+
$args->value = array_map( 'strval', $args->value );
|
1313 |
+
|
1314 |
+
if ( in_array( (string) $item_id, $args->value, true ) ) {
|
1315 |
+
$selected = true;
|
1316 |
+
}
|
1317 |
}
|
1318 |
} elseif ( (string) $item_id === (string) $args->value ) {
|
1319 |
$selected = true;
|
init.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Pods - Custom Content Types and Fields
|
4 |
Plugin URI: https://pods.io/
|
5 |
Description: Pods is a framework for creating, managing, and deploying customized content types and fields
|
6 |
-
Version: 2.7.
|
7 |
Author: Pods Framework Team
|
8 |
Author URI: https://pods.io/about/
|
9 |
Text Domain: pods
|
@@ -36,7 +36,7 @@ if ( defined( 'PODS_VERSION' ) || defined( 'PODS_DIR' ) ) {
|
|
36 |
add_action( 'init', 'pods_deactivate_pods_ui' );
|
37 |
} else {
|
38 |
// Current version
|
39 |
-
define( 'PODS_VERSION', '2.7.
|
40 |
|
41 |
// Version tracking between DB updates themselves
|
42 |
define( 'PODS_DB_VERSION', '2.3.5' );
|
3 |
Plugin Name: Pods - Custom Content Types and Fields
|
4 |
Plugin URI: https://pods.io/
|
5 |
Description: Pods is a framework for creating, managing, and deploying customized content types and fields
|
6 |
+
Version: 2.7.6
|
7 |
Author: Pods Framework Team
|
8 |
Author URI: https://pods.io/about/
|
9 |
Text Domain: pods
|
36 |
add_action( 'init', 'pods_deactivate_pods_ui' );
|
37 |
} else {
|
38 |
// Current version
|
39 |
+
define( 'PODS_VERSION', '2.7.6' );
|
40 |
|
41 |
// Version tracking between DB updates themselves
|
42 |
define( 'PODS_DB_VERSION', '2.3.5' );
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: pods, custom post types, custom taxonomies, content types, custom fields,
|
|
5 |
Requires at least: 4.5
|
6 |
Requires PHP: 5.3
|
7 |
Tested up to: 4.9.6
|
8 |
-
Stable tag: 2.7.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -180,6 +180,10 @@ We also have a dedicated [Slack Chat](https://pods.io/chat/) channel to help our
|
|
180 |
|
181 |
== Changelog ==
|
182 |
|
|
|
|
|
|
|
|
|
183 |
= 2.7.5 - June 7th 2018 =
|
184 |
|
185 |
**Bug Fixes**
|
5 |
Requires at least: 4.5
|
6 |
Requires PHP: 5.3
|
7 |
Tested up to: 4.9.6
|
8 |
+
Stable tag: 2.7.6
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
180 |
|
181 |
== Changelog ==
|
182 |
|
183 |
+
= 2.7.6 - June 8th 2018 =
|
184 |
+
|
185 |
+
* Fixed: Records added modally via DFV's 'Add New' are not selected and don't refresh list view in 2.7.5, #5014 (@sc0ttkclark, @pglewis)
|
186 |
+
|
187 |
= 2.7.5 - June 7th 2018 =
|
188 |
|
189 |
**Bug Fixes**
|