Commit 17dead2b authored by Simon's avatar Simon

Plugins update

parent cbff1c63
...@@ -655,7 +655,7 @@ class PodsInit { ...@@ -655,7 +655,7 @@ class PodsInit {
// DFV must be enqueued on the media library page for items in grid mode (#4785) // DFV must be enqueued on the media library page for items in grid mode (#4785)
// and for posts due to the possibility that post-thumbnails are enabled (#4945) // and for posts due to the possibility that post-thumbnails are enabled (#4945)
if ( $screen->base && in_array( $screen->base, array( 'upload', 'post' ), true ) ) { if ( $screen && $screen->base && in_array( $screen->base, array( 'upload', 'post' ), true ) ) {
wp_enqueue_script( 'pods-dfv' ); wp_enqueue_script( 'pods-dfv' );
} }
} }
......
...@@ -1173,9 +1173,13 @@ class PodsMeta { ...@@ -1173,9 +1173,13 @@ class PodsMeta {
$value = get_post_meta( $id, $field['name'], true ); $value = get_post_meta( $id, $field['name'], true );
} }
if ( ! $value && ! is_numeric( $value ) && 'add' === get_current_screen()->action ) { if ( ! $value && ! is_numeric( $value ) ) {
// Revert to default. $screen = get_current_screen();
$value = null;
if ( $screen && 'add' === $screen->action ) {
// Revert to default.
$value = null;
}
} }
if ( 'hidden' == $field['type'] ) { if ( 'hidden' == $field['type'] ) {
......
...@@ -313,7 +313,7 @@ class PodsField_Avatar extends PodsField_File { ...@@ -313,7 +313,7 @@ class PodsField_Avatar extends PodsField_File {
'options-discussion', 'options-discussion',
); );
if ( null !== $current_screen && in_array( $current_screen->id, $screens, true ) ) { if ( $current_screen && in_array( $current_screen->id, $screens, true ) ) {
return false; return false;
} }
} }
......
...@@ -95,7 +95,7 @@ class Pods_Templates_Frontier { ...@@ -95,7 +95,7 @@ class Pods_Templates_Frontier {
$screen = get_current_screen(); $screen = get_current_screen();
if ( ! isset( $this->plugin_screen_hook_suffix ) ) { if ( ! $screen || ! isset( $this->plugin_screen_hook_suffix ) ) {
return; return;
} }
...@@ -186,7 +186,7 @@ class Pods_Templates_Frontier { ...@@ -186,7 +186,7 @@ class Pods_Templates_Frontier {
$slug = $post->post_type; $slug = $post->post_type;
} else { } else {
$screen = get_current_screen(); $screen = get_current_screen();
if ( ! in_array( $screen->base, array( '_pods_template' ), true ) ) { if ( ! $screen || ! in_array( $screen->base, array( '_pods_template' ), true ) ) {
return; return;
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Plugin Name: Pods - Custom Content Types and Fields Plugin Name: Pods - Custom Content Types and Fields
Plugin URI: https://pods.io/ Plugin URI: https://pods.io/
Description: Pods is a framework for creating, managing, and deploying customized content types and fields Description: Pods is a framework for creating, managing, and deploying customized content types and fields
Version: 2.7.29 Version: 2.7.30
Author: Pods Framework Team Author: Pods Framework Team
Author URI: https://pods.io/about/ Author URI: https://pods.io/about/
Text Domain: pods Text Domain: pods
...@@ -37,7 +37,7 @@ if ( defined( 'PODS_VERSION' ) || defined( 'PODS_DIR' ) ) { ...@@ -37,7 +37,7 @@ if ( defined( 'PODS_VERSION' ) || defined( 'PODS_DIR' ) ) {
add_action( 'init', 'pods_deactivate_pods_ui' ); add_action( 'init', 'pods_deactivate_pods_ui' );
} else { } else {
// Current version // Current version
define( 'PODS_VERSION', '2.7.29' ); define( 'PODS_VERSION', '2.7.30' );
// Version tracking between DB updates themselves // Version tracking between DB updates themselves
define( 'PODS_DB_VERSION', '2.3.5' ); define( 'PODS_DB_VERSION', '2.3.5' );
......
...@@ -5,7 +5,7 @@ Tags: pods, custom post types, custom taxonomies, content types, custom fields, ...@@ -5,7 +5,7 @@ Tags: pods, custom post types, custom taxonomies, content types, custom fields,
Requires at least: 4.5 Requires at least: 4.5
Tested up to: 5.8 Tested up to: 5.8
Requires PHP: 5.3 Requires PHP: 5.3
Stable tag: 2.7.29 Stable tag: 2.7.30
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
...@@ -190,6 +190,10 @@ We are also available through our [Live Slack Chat](https://pods.io/chat/) to he ...@@ -190,6 +190,10 @@ We are also available through our [Live Slack Chat](https://pods.io/chat/) to he
== Changelog == == Changelog ==
= 2.7.30 - August 12th, 2021 =
* Fixed: Prevented a few PHP notices from showing on the new WordPress 5.8+ widgets screen.
= 2.7.29 - August 4th, 2021 = = 2.7.29 - August 4th, 2021 =
* Security: Clean up post type and taxonomy labels so they avoid potential output escaping problems in WordPress core (@sc0ttkclark, reported by Muhammad Daffa via WPScan) * Security: Clean up post type and taxonomy labels so they avoid potential output escaping problems in WordPress core (@sc0ttkclark, reported by Muhammad Daffa via WPScan)
......
...@@ -23,8 +23,8 @@ versionAkismet=4.1.10; ...@@ -23,8 +23,8 @@ versionAkismet=4.1.10;
versionClassicWidgets=0.2; versionClassicWidgets=0.2;
versionGoogleSitemapGenerator=4.1.1; versionGoogleSitemapGenerator=4.1.1;
versionLocoTranslate=2.5.3; versionLocoTranslate=2.5.3;
versionPods=2.7.29; versionPods=2.7.30;
versionPolylang=3.1; versionPolylang=3.1.1;
versionSiteReviews=5.13.2; versionSiteReviews=5.13.2;
versionWordpressSeo=16.9; versionWordpressSeo=16.9;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment