Version Description
June 13th, 2022 =
Fixed: Theme views now load as expected, fixing an issue introduced in 2.8.18. (@sc0ttkclark)
Download this release
Release Info
| Developer | sc0ttkclark |
| Plugin | |
| Version | 2.8.19 |
| Comparing to | |
| See all releases | |
Code changes from version 2.8.18 to 2.8.19
- classes/PodsAPI.php +3 -0
- includes/data.php +8 -8
- init.php +2 -2
- readme.txt +5 -1
classes/PodsAPI.php
CHANGED
|
@@ -10560,6 +10560,7 @@ class PodsAPI {
|
|
| 10560 |
* @since 2.0.0
|
| 10561 |
*/
|
| 10562 |
public function process_form( $params, $obj = null, $fields = null, $thank_you = null ) {
|
|
|
|
| 10563 |
|
| 10564 |
$this->display_errors = false;
|
| 10565 |
|
|
@@ -10640,6 +10641,8 @@ class PodsAPI {
|
|
| 10640 |
}
|
| 10641 |
}
|
| 10642 |
|
|
|
|
|
|
|
| 10643 |
return $id;
|
| 10644 |
}
|
| 10645 |
|
| 10560 |
* @since 2.0.0
|
| 10561 |
*/
|
| 10562 |
public function process_form( $params, $obj = null, $fields = null, $thank_you = null ) {
|
| 10563 |
+
$old_display_errors = $this->display_errors;
|
| 10564 |
|
| 10565 |
$this->display_errors = false;
|
| 10566 |
|
| 10641 |
}
|
| 10642 |
}
|
| 10643 |
|
| 10644 |
+
$this->display_errors = $old_display_errors;
|
| 10645 |
+
|
| 10646 |
return $id;
|
| 10647 |
}
|
| 10648 |
|
includes/data.php
CHANGED
|
@@ -2479,11 +2479,7 @@ function pods_validate_safe_path( $path, $paths_to_check = null ) {
|
|
| 2479 |
$path = str_replace( '../', '', $path, $match_count );
|
| 2480 |
}
|
| 2481 |
|
| 2482 |
-
$
|
| 2483 |
-
|
| 2484 |
-
if ( ! $path ) {
|
| 2485 |
-
return false;
|
| 2486 |
-
}
|
| 2487 |
|
| 2488 |
$path_match = false;
|
| 2489 |
|
|
@@ -2497,19 +2493,23 @@ function pods_validate_safe_path( $path, $paths_to_check = null ) {
|
|
| 2497 |
$is_theme = 'theme' === $check_type;
|
| 2498 |
|
| 2499 |
foreach ( $check_type_paths as $path_to_check ) {
|
| 2500 |
-
if ( 0 === strpos( $
|
| 2501 |
// Check the path starts with the one we are checking for and that the file exists.
|
| 2502 |
$path_match = true;
|
| 2503 |
|
|
|
|
|
|
|
| 2504 |
break;
|
| 2505 |
} elseif ( $is_theme ) {
|
| 2506 |
// Check the theme directories.
|
| 2507 |
-
$path_localized_for_theme = trim( $path,
|
| 2508 |
|
| 2509 |
// Confirm the file exists.
|
| 2510 |
-
if ( file_exists( $path_to_check . $path_localized_for_theme ) ) {
|
| 2511 |
$path_match = true;
|
| 2512 |
|
|
|
|
|
|
|
| 2513 |
break;
|
| 2514 |
}
|
| 2515 |
}
|
| 2479 |
$path = str_replace( '../', '', $path, $match_count );
|
| 2480 |
}
|
| 2481 |
|
| 2482 |
+
$real_path = realpath( $path );
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2483 |
|
| 2484 |
$path_match = false;
|
| 2485 |
|
| 2493 |
$is_theme = 'theme' === $check_type;
|
| 2494 |
|
| 2495 |
foreach ( $check_type_paths as $path_to_check ) {
|
| 2496 |
+
if ( $real_path && 0 === strpos( $real_path, $path_to_check ) && file_exists( $real_path ) ) {
|
| 2497 |
// Check the path starts with the one we are checking for and that the file exists.
|
| 2498 |
$path_match = true;
|
| 2499 |
|
| 2500 |
+
$path = $real_path;
|
| 2501 |
+
|
| 2502 |
break;
|
| 2503 |
} elseif ( $is_theme ) {
|
| 2504 |
// Check the theme directories.
|
| 2505 |
+
$path_localized_for_theme = trim( $path, DIRECTORY_SEPARATOR );
|
| 2506 |
|
| 2507 |
// Confirm the file exists.
|
| 2508 |
+
if ( file_exists( $path_to_check . DIRECTORY_SEPARATOR . $path_localized_for_theme ) ) {
|
| 2509 |
$path_match = true;
|
| 2510 |
|
| 2511 |
+
$path = $path_to_check . DIRECTORY_SEPARATOR . $path_localized_for_theme;
|
| 2512 |
+
|
| 2513 |
break;
|
| 2514 |
}
|
| 2515 |
}
|
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.
|
| 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.
|
| 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.19
|
| 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.19' );
|
| 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: 6.0
|
| 7 |
Requires PHP: 5.6
|
| 8 |
-
Stable tag: 2.8.
|
| 9 |
License: GPLv2 or later
|
| 10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 11 |
|
|
@@ -156,6 +156,10 @@ Pods really wouldn't be where it is without all the contributions from our [dono
|
|
| 156 |
|
| 157 |
== Changelog ==
|
| 158 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
= 2.8.18 - June 10th, 2022 =
|
| 160 |
|
| 161 |
* Added: New helper functions `pods_clean_memory()` and `pods_maybe_clean_memory()` introduced to provide WP-CLI commands in Pods core and add-ons the ability to help reduce memory usage in long running processes. (@sc0ttkclark)
|
| 5 |
Requires at least: 5.5
|
| 6 |
Tested up to: 6.0
|
| 7 |
Requires PHP: 5.6
|
| 8 |
+
Stable tag: 2.8.19
|
| 9 |
License: GPLv2 or later
|
| 10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 11 |
|
| 156 |
|
| 157 |
== Changelog ==
|
| 158 |
|
| 159 |
+
= 2.8.19 - June 13th, 2022 =
|
| 160 |
+
|
| 161 |
+
* Fixed: Theme views now load as expected, fixing an issue introduced in 2.8.18. (@sc0ttkclark)
|
| 162 |
+
|
| 163 |
= 2.8.18 - June 10th, 2022 =
|
| 164 |
|
| 165 |
* Added: New helper functions `pods_clean_memory()` and `pods_maybe_clean_memory()` introduced to provide WP-CLI commands in Pods core and add-ons the ability to help reduce memory usage in long running processes. (@sc0ttkclark)
|
