Version Description
November 17th, 2021 =
Fixed: Resolved issues where usage of
pods_group_add()
could produce errors which would stop the Edit Post screen from loading. (@sc0ttkclark)
Download this release
Release Info
Developer | sc0ttkclark |
Plugin | Pods – Custom Content Types and Fields |
Version | 2.8.4.1 |
Comparing to | |
See all releases |
Code changes from version 2.8.4 to 2.8.4.1
- classes/PodsMeta.php +1 -5
- includes/general.php +2 -2
- init.php +2 -2
- readme.txt +5 -1
classes/PodsMeta.php
CHANGED
@@ -668,11 +668,7 @@ class PodsMeta {
|
|
668 |
$pod['object'] = $pod['name'];
|
669 |
}
|
670 |
|
671 |
-
|
672 |
-
return pods_error( __( 'Object required to add a Pods meta group', 'pods' ) );
|
673 |
-
}
|
674 |
-
|
675 |
-
$object_name = $pod['object'];
|
676 |
|
677 |
if ( 'pod' == $pod['type'] ) {
|
678 |
$object_name = $pod['name'];
|
668 |
$pod['object'] = $pod['name'];
|
669 |
}
|
670 |
|
671 |
+
$object_name = ! empty( $pod['object'] ) ? $pod['object'] : $pod['name'];
|
|
|
|
|
|
|
|
|
672 |
|
673 |
if ( 'pod' == $pod['type'] ) {
|
674 |
$object_name = $pod['name'];
|
includes/general.php
CHANGED
@@ -2452,10 +2452,10 @@ function pods_require_component( $component ) {
|
|
2452 |
* @link https://docs.pods.io/code/general-functions/pods-group-add/
|
2453 |
*/
|
2454 |
function pods_group_add( $pod, $label, $fields, $context = 'normal', $priority = 'default', $type = null ) {
|
2455 |
-
if ( ! is_array( $pod ) && ! $pod instanceof Pods\Whatsit
|
2456 |
$pod = array(
|
2457 |
'name' => $pod,
|
2458 |
-
'type' => $type,
|
2459 |
);
|
2460 |
}
|
2461 |
|
2452 |
* @link https://docs.pods.io/code/general-functions/pods-group-add/
|
2453 |
*/
|
2454 |
function pods_group_add( $pod, $label, $fields, $context = 'normal', $priority = 'default', $type = null ) {
|
2455 |
+
if ( ! is_array( $pod ) && ! $pod instanceof Pods\Whatsit ) {
|
2456 |
$pod = array(
|
2457 |
'name' => $pod,
|
2458 |
+
'type' => null !== $type ? $type : 'post_type',
|
2459 |
);
|
2460 |
}
|
2461 |
|
init.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* Plugin Name: Pods - Custom Content Types and Fields
|
11 |
* Plugin URI: https://pods.io/
|
12 |
* Description: Pods is a framework for creating, managing, and deploying customized content types and fields
|
13 |
-
* Version: 2.8.4
|
14 |
* Author: Pods Framework Team
|
15 |
* Author URI: https://pods.io/about/
|
16 |
* Text Domain: pods
|
@@ -43,7 +43,7 @@ if ( defined( 'PODS_VERSION' ) || defined( 'PODS_DIR' ) ) {
|
|
43 |
add_action( 'init', 'pods_deactivate_pods_ui' );
|
44 |
} else {
|
45 |
// Current version.
|
46 |
-
define( 'PODS_VERSION', '2.8.4' );
|
47 |
|
48 |
// Current database version, this is the last version the database changed.
|
49 |
define( 'PODS_DB_VERSION', '2.3.5' );
|
10 |
* Plugin Name: Pods - Custom Content Types and Fields
|
11 |
* Plugin URI: https://pods.io/
|
12 |
* Description: Pods is a framework for creating, managing, and deploying customized content types and fields
|
13 |
+
* Version: 2.8.4.1
|
14 |
* Author: Pods Framework Team
|
15 |
* Author URI: https://pods.io/about/
|
16 |
* Text Domain: pods
|
43 |
add_action( 'init', 'pods_deactivate_pods_ui' );
|
44 |
} else {
|
45 |
// Current version.
|
46 |
+
define( 'PODS_VERSION', '2.8.4.1' );
|
47 |
|
48 |
// Current database version, this is the last version the database changed.
|
49 |
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: 5.5
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 2.8.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -151,6 +151,10 @@ Pods really wouldn't be where it is without all the contributions from our [dono
|
|
151 |
|
152 |
== Changelog ==
|
153 |
|
|
|
|
|
|
|
|
|
154 |
= 2.8.4 - November 16th, 2021 =
|
155 |
|
156 |
* Added: Pods Field Value widget now supports using current post/term just like the Pods Single Item widget does. (@sc0ttkclark)
|
5 |
Requires at least: 5.5
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 2.8.4.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
151 |
|
152 |
== Changelog ==
|
153 |
|
154 |
+
= 2.8.4.1 - November 17th, 2021 =
|
155 |
+
|
156 |
+
* Fixed: Resolved issues where usage of `pods_group_add()` could produce errors which would stop the Edit Post screen from loading. (@sc0ttkclark)
|
157 |
+
|
158 |
= 2.8.4 - November 16th, 2021 =
|
159 |
|
160 |
* Added: Pods Field Value widget now supports using current post/term just like the Pods Single Item widget does. (@sc0ttkclark)
|