Commit 17dead2b authored by Simon's avatar Simon

Plugins update

parent cbff1c63
......@@ -655,7 +655,7 @@ class PodsInit {
// 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)
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' );
}
}
......
......@@ -1173,10 +1173,14 @@ class PodsMeta {
$value = get_post_meta( $id, $field['name'], true );
}
if ( ! $value && ! is_numeric( $value ) && 'add' === get_current_screen()->action ) {
if ( ! $value && ! is_numeric( $value ) ) {
$screen = get_current_screen();
if ( $screen && 'add' === $screen->action ) {
// Revert to default.
$value = null;
}
}
if ( 'hidden' == $field['type'] ) {
$hidden_fields[] = array(
......
......@@ -313,7 +313,7 @@ class PodsField_Avatar extends PodsField_File {
'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;
}
}
......
......@@ -95,7 +95,7 @@ class Pods_Templates_Frontier {
$screen = get_current_screen();
if ( ! isset( $this->plugin_screen_hook_suffix ) ) {
if ( ! $screen || ! isset( $this->plugin_screen_hook_suffix ) ) {
return;
}
......@@ -186,7 +186,7 @@ class Pods_Templates_Frontier {
$slug = $post->post_type;
} else {
$screen = get_current_screen();
if ( ! in_array( $screen->base, array( '_pods_template' ), true ) ) {
if ( ! $screen || ! in_array( $screen->base, array( '_pods_template' ), true ) ) {
return;
}
......
......@@ -3,7 +3,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: 2.7.29
Version: 2.7.30
Author: Pods Framework Team
Author URI: https://pods.io/about/
Text Domain: pods
......@@ -37,7 +37,7 @@ if ( defined( 'PODS_VERSION' ) || defined( 'PODS_DIR' ) ) {
add_action( 'init', 'pods_deactivate_pods_ui' );
} else {
// Current version
define( 'PODS_VERSION', '2.7.29' );
define( 'PODS_VERSION', '2.7.30' );
// Version tracking between DB updates themselves
define( 'PODS_DB_VERSION', '2.3.5' );
......
......@@ -5,7 +5,7 @@ Tags: pods, custom post types, custom taxonomies, content types, custom fields,
Requires at least: 4.5
Tested up to: 5.8
Requires PHP: 5.3
Stable tag: 2.7.29
Stable tag: 2.7.30
License: GPLv2 or later
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
== 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 =
* 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;
versionClassicWidgets=0.2;
versionGoogleSitemapGenerator=4.1.1;
versionLocoTranslate=2.5.3;
versionPods=2.7.29;
versionPolylang=3.1;
versionPods=2.7.30;
versionPolylang=3.1.1;
versionSiteReviews=5.13.2;
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