Skip to content

Commit

Permalink
Merge pull request #7206 from pods-framework/release/3.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark authored Oct 20, 2023
2 parents 6280758 + b5d5a39 commit 5613e32
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 15 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ Found a bug? Have a great feature idea? Get on GitHub and tell us about it and w

Our GitHub has the full list of all prior releases of Pods: https://github.com/pods-framework/pods/releases

= 3.0.8 - October 20th, 2023 =

* Fixed: Resolved the hooked var handling for pre-save hooks in PodsAPI::save_pod_item() that was broken in Pods 3.0. #5532 #7195 (@sc0ttkclark, @olivierguerriat, @HmCody)
* Fixed: Resolve PHP deprecated notice in the `PodsUpgrade` class. #7190 (@sc0ttkclark)

= 3.0.7 - October 19th, 2023 =

* Fixed: Avoid duplicate fields showing up when registering fields manually through `pods_group_add()` instead of through normal DB or file-based configs. #6317 (@sc0ttkclark)
Expand Down
12 changes: 6 additions & 6 deletions classes/PodsAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -5128,7 +5128,7 @@ public function save_pod_item( $params ) {
$hooked = $this->do_hook( 'pre_save_pod_item', compact( $pieces ), $is_new_item, $params->id );

if ( is_array( $hooked ) && ! empty( $hooked ) ) {
$hooked = array_intersect_key( $pieces, $hooked );
$hooked = array_intersect_key( $hooked, array_flip( $pieces ) );

extract( $hooked );
}
Expand All @@ -5138,7 +5138,7 @@ public function save_pod_item( $params ) {
$hooked = $this->do_hook( "pre_save_pod_item_{$params->pod}", compact( $pieces ), $is_new_item, $params->id );

if ( is_array( $hooked ) && ! empty( $hooked ) ) {
$hooked = array_intersect_key( $pieces, $hooked );
$hooked = array_intersect_key( $hooked, array_flip( $pieces ) );

extract( $hooked );
}
Expand All @@ -5149,7 +5149,7 @@ public function save_pod_item( $params ) {
$hooked = $this->do_hook( 'pre_create_pod_item', compact( $pieces ) );

if ( is_array( $hooked ) && ! empty( $hooked ) ) {
$hooked = array_intersect_key( $pieces, $hooked );
$hooked = array_intersect_key( $hooked, array_flip( $pieces ) );

extract( $hooked );
}
Expand All @@ -5159,7 +5159,7 @@ public function save_pod_item( $params ) {
$hooked = $this->do_hook( "pre_create_pod_item_{$params->pod}", compact( $pieces ) );

if ( is_array( $hooked ) && ! empty( $hooked ) ) {
$hooked = array_intersect_key( $pieces, $hooked );
$hooked = array_intersect_key( $hooked, array_flip( $pieces ) );

extract( $hooked );
}
Expand All @@ -5169,7 +5169,7 @@ public function save_pod_item( $params ) {
$hooked = $this->do_hook( 'pre_edit_pod_item', compact( $pieces ), $params->id );

if ( is_array( $hooked ) && ! empty( $hooked ) ) {
$hooked = array_intersect_key( $pieces, $hooked );
$hooked = array_intersect_key( $hooked, array_flip( $pieces ) );

extract( $hooked );
}
Expand All @@ -5179,7 +5179,7 @@ public function save_pod_item( $params ) {
$hooked = $this->do_hook( "pre_edit_pod_item_{$params->pod}", compact( $pieces ), $params->id );

if ( is_array( $hooked ) && ! empty( $hooked ) ) {
$hooked = array_intersect_key( $pieces, $hooked );
$hooked = array_intersect_key( $hooked, array_flip( $pieces ) );

extract( $hooked );
}
Expand Down
4 changes: 2 additions & 2 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: Pods - Custom Content Types and Fields
* Plugin URI: https://pods.io/
* Description: Pods is a framework for creating, managing, and deploying customized content types and fields
* Version: 3.0.7
* Version: 3.0.8
* Author: Pods Framework Team
* Author URI: https://pods.io/about/
* Text Domain: pods
Expand Down Expand Up @@ -43,7 +43,7 @@
add_action( 'init', 'pods_deactivate_pods_ui' );
} else {
// Current version.
define( 'PODS_VERSION', '3.0.7' );
define( 'PODS_VERSION', '3.0.8' );

// Current database version, this is the last version the database changed.
define( 'PODS_DB_VERSION', '2.3.5' );
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pods",
"version": "3.0.7",
"version": "3.0.8",
"description": "Pods is a development framework for creating, extending, managing, and deploying customized content types in WordPress.",
"author": "Pods Foundation, Inc",
"homepage": "https://pods.io/",
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: pods, custom post types, custom taxonomies, content types, custom fields,
Requires at least: 6.0
Tested up to: 6.3
Requires PHP: 7.2
Stable tag: 3.0.7
Stable tag: 3.0.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -177,6 +177,11 @@ Pods really wouldn't be where it is without all the contributions from our [dono

== Changelog ==

= 3.0.8 - October 20th, 2023 =

* Fixed: Resolved the hooked var handling for pre-save hooks in PodsAPI::save_pod_item() that was broken in Pods 3.0. #5532 #7195 (@sc0ttkclark, @olivierguerriat, @HmCody)
* Fixed: Resolve PHP deprecated notice in the `PodsUpgrade` class. #7190 (@sc0ttkclark)

= 3.0.7 - October 19th, 2023 =

* Fixed: Avoid duplicate fields showing up when registering fields manually through `pods_group_add()` instead of through normal DB or file-based configs. #6317 (@sc0ttkclark)
Expand Down
6 changes: 5 additions & 1 deletion sql/upgrade/PodsUpgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,11 @@ public function get_progress() {
}
}

$progress = (array) get_option( 'pods_framework_upgrade_' . str_replace( '.', '_', $this->version ), array() );
if ( empty( $this->version ) ) {
return;
}

$progress = (array) get_option( 'pods_framework_upgrade_' . str_replace( '.', '_', $this->version ), [] );

if ( ! empty( $progress ) ) {
$this->progress = array_merge( $this->progress, $progress );
Expand Down
2 changes: 1 addition & 1 deletion ui/js/blocks/pods-blocks-api.min.asset.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"dependencies":["lodash","react","react-dom","wp-api-fetch","wp-autop","wp-block-editor","wp-blocks","wp-components","wp-compose","wp-date","wp-element","wp-i18n","wp-keycodes","wp-server-side-render","wp-url"],"version":"3d56c95097a40de6c049"}
{"dependencies":["lodash","react","react-dom","wp-api-fetch","wp-autop","wp-block-editor","wp-blocks","wp-components","wp-compose","wp-date","wp-element","wp-i18n","wp-keycodes","wp-server-side-render","wp-url"],"version":"cba6de99e86a4f2966a0"}
2 changes: 1 addition & 1 deletion ui/js/blocks/pods-blocks-api.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ui/js/dfv/pods-dfv.min.asset.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"dependencies":["lodash","moment","react","react-dom","wp-api-fetch","wp-autop","wp-components","wp-compose","wp-data","wp-element","wp-hooks","wp-i18n","wp-keycodes","wp-plugins","wp-polyfill","wp-primitives","wp-url"],"version":"2032a5c0f6a348514cbd"}
{"dependencies":["lodash","moment","react","react-dom","wp-api-fetch","wp-autop","wp-components","wp-compose","wp-data","wp-element","wp-hooks","wp-i18n","wp-keycodes","wp-plugins","wp-polyfill","wp-primitives","wp-url"],"version":"3d26ab5601bb8f35ea48"}
2 changes: 1 addition & 1 deletion ui/js/dfv/pods-dfv.min.js

Large diffs are not rendered by default.

0 comments on commit 5613e32

Please sign in to comment.