From 011a845c705d774bdd574687f9a73ab1aa2bb5e0 Mon Sep 17 00:00:00 2001 From: Scott Kingsley Clark Date: Sun, 17 Nov 2024 10:25:21 -0600 Subject: [PATCH] Pods 3.2.8 --- components/Pages.php | 16 ++++++++-------- components/Templates/Templates.php | 6 +++--- init.php | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- readme.txt | 9 ++++++--- src/Pods/Blocks/Types/Base.php | 4 ++-- src/Pods/Integration.php | 2 +- 8 files changed, 25 insertions(+), 22 deletions(-) diff --git a/components/Pages.php b/components/Pages.php index 03121f3b18..3ac14f26e3 100644 --- a/components/Pages.php +++ b/components/Pages.php @@ -884,7 +884,7 @@ public function save_meta( $_null, $post_ID = null, $meta_key = null, $meta_valu /** * Save post revision for a post without a return. * - * @since TBD + * @since 3.2.8 * * @param int $post_id The post ID. */ @@ -1083,7 +1083,7 @@ public static function exists( $uri = null ) { /** * Convert a Page object to a Pod Page data array. * - * @since TBD + * @since 3.2.8 * * @param Page $object The Pod Page object. * @@ -1165,7 +1165,7 @@ public function page_check() { /** * Output Pdos Page content without return. * - * @since TBD + * @since 3.2.8 */ public function pods_page_content() { pods_content(); @@ -1552,7 +1552,7 @@ public function template_include( $original_template ) { /** * Allow determining whether a Pod Page template was loaded. * - * @since TBD + * @since 3.2.8 * * @param string $template The template file that was loaded. * @param array $pod_page The Pods Page data. @@ -1686,7 +1686,7 @@ public function template_redirect() { /** * Allow determining whether a Pod Page template was loaded. * - * @since TBD + * @since 3.2.8 * * @param string $template The template file that was loaded. * @param array $pod_page The Pods Page data. @@ -1717,7 +1717,7 @@ public function template_redirect() { /** * Get templates for pod page. * - * @since TBD + * @since 3.2.8 * * @param array|Page $pod_page The pod page data. * @@ -1764,7 +1764,7 @@ public static function get_templates_for_pod_page( $pod_page ): array { /** * Get templates for pod page content. * - * @since TBD + * @since 3.2.8 * * @param array|Page $pod_page The pod page data. * @@ -1807,7 +1807,7 @@ public static function get_templates_for_pod_page_content( $pod_page ): array { /** * Get the list of template header information for each of the template files. * - * @since TBD + * @since 3.2.8 * * @param array $template_files The list of template files. * diff --git a/components/Templates/Templates.php b/components/Templates/Templates.php index 8176fd5791..d827452fe1 100644 --- a/components/Templates/Templates.php +++ b/components/Templates/Templates.php @@ -519,7 +519,7 @@ public function save_meta( $_null, $post_ID = null, $meta_key = null, $meta_valu /** * Save post revision for a post without a return. * - * @since TBD + * @since 3.2.8 * * @param int $post_id The post ID. */ @@ -730,7 +730,7 @@ public static function template( $template_name, $code = null, $obj = null, $dep /** * Get templates for pod page. * - * @since TBD + * @since 3.2.8 * * @param array|Template $template The pod template data. * @param Pods|null $obj The Pods object. @@ -763,7 +763,7 @@ public static function get_templates_for_pod_template( $template, $obj = null ): /** * Get the list of template header information for each of the template files. * - * @since TBD + * @since 3.2.8 * * @param array $template_files The list of template files. * diff --git a/init.php b/init.php index 540049c0ec..a0f2ca6e45 100644 --- a/init.php +++ b/init.php @@ -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.2.8-a-1 + * Version: 3.2.8 * Author: Pods Framework Team * Author URI: https://pods.io/about/ * Text Domain: pods @@ -43,7 +43,7 @@ add_action( 'init', 'pods_deactivate_pods_ui' ); } else { // Current version. - define( 'PODS_VERSION', '3.2.8-a-1' ); + define( 'PODS_VERSION', '3.2.8' ); // Current database version, this is the last version the database changed. define( 'PODS_DB_VERSION', '2.3.5' ); diff --git a/package-lock.json b/package-lock.json index e93bd1a969..7d386befc9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pods", - "version": "3.2.8-a-1", + "version": "3.2.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "pods", - "version": "3.2.8-a-1", + "version": "3.2.8", "license": "GPL-2.0+", "dependencies": { "@babel/runtime": "^7.17.9", diff --git a/package.json b/package.json index 4d87ebfb1a..5d3b76196f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pods", - "version": "3.2.8-a-1", + "version": "3.2.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/", diff --git a/readme.txt b/readme.txt index c7018fda42..99954cfac6 100644 --- a/readme.txt +++ b/readme.txt @@ -5,7 +5,7 @@ Tags: pods, custom post types, custom taxonomies, content types, custom fields Requires at least: 6.0 Tested up to: 6.6 Requires PHP: 7.2 -Stable tag: 3.2.8-a-1 +Stable tag: 3.2.8 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -184,12 +184,14 @@ Pods really wouldn't be where it is without all the contributions from our [dono = 3.2.8 - November 17th, 2024 = +REMINDER: PHP support for Pod Templates and Pod Pages been turned off by default in Pods 3.2.7+ (`PODS_DISABLE_EVAL` constant set to `false` can be used to re-enable it). It will be completely removed in Pods 3.3 after being deprecated back in Pods 2.3. (@sc0ttkclark) + * Feature: Migrate the PHP in your Pod Templates and Pod Pages directly into your current theme with a new Pods Admin > Tools > Migrate PHP tool. We recommend you use a child theme that you control. PHP warnings now appear on the Pod Template and Pod Page editor screens to prompt you to run the migration. (@sc0ttkclark) * Feature: Updated the design and user experience of the various guided screens inside of the Pods Admin to make it easier to read and click through on small screens. (@sc0ttkclark, @heybran) -* REMINDER: PHP support for Pod Templates and Pod Pages been turned off by default in Pods 3.2.7+ (`PODS_DISABLE_EVAL` constant set to `false` can be used to re-enable it). It will be completely removed in Pods 3.3 after being deprecated back in Pods 2.3. (@sc0ttkclark) * Enhanced: Pod Page template part handling for PHP template files now passes the `$pods` variable. (@sc0ttkclark) * Enhanced: Added support for parsing magic tags in Pod Template files in the theme when you set the PHP header comment `Magic Tags: Enabled`. (@sc0ttkclark) -* Fixed: No longer calling +* Enhanced: Run wpautop on Pods Item List and Pods Related Item List blocks for the "not found" content if they are not already formatted. (@sc0ttkclark) +* Fixed: Only running wpautop for block the Pods Field block content if it does not contain div, ul, ol, heading, or p HTML tags. (@sc0ttkclark) * Fixed: Resolve issue with empty strings showing when using magic tags before/after functionality. (@JoryHogeveen) * Fixed: Ignore more internal WP post types and taxonomies plus others from other plugins. * Fixed: Move load_plugin_textdomain usage into init and make it optional with the constant `PODS_LOAD_TEXTDOMAIN` set to `true`. It is no longer needed for WordPress.org plugins but may be needed in the future for testing. (@sc0ttkclark) @@ -198,6 +200,7 @@ Pods really wouldn't be where it is without all the contributions from our [dono * Fixed: Resolve PHP notices with site debug information. (@sc0ttkclark) * Fixed: Resolve PHP warnings with empty template code. (@sc0ttkclark) * Fixed: More improvements to Pod Page and Pod Template file loading from themes. (@sc0ttkclark) +* Fixed: Resolve issue with slug fields not formatting as expected. (@sc0ttkclark) * Fixed: SCSS migrated from `@import` to `@use` for compatibility with the latest versions of our SCSS scripting. (@sc0ttkclark) = 3.2.7.1 - October 9th, 2024 = diff --git a/src/Pods/Blocks/Types/Base.php b/src/Pods/Blocks/Types/Base.php index a5d342d817..65cd1c0cae 100644 --- a/src/Pods/Blocks/Types/Base.php +++ b/src/Pods/Blocks/Types/Base.php @@ -274,7 +274,7 @@ public function in_editor_mode( $attributes = [] ) { /** * Determine whether to apply wpautop to the block content output. * - * @since TBD + * @since 3.2.8 * * @param string|mixed $content The content to determine whether to autop. * @param array $attributes The Pods render attributes that will be used. @@ -296,7 +296,7 @@ public function should_autop( $content, array $attributes = [] ): bool { * * This is used for things like Field block render or List block render of the no items found message. * - * @since TBD + * @since 3.2.8 * * @param bool $should_autop Whether to apply wpautop to the block content output. * @param string|mixed $content The content to determine whether to autop. diff --git a/src/Pods/Integration.php b/src/Pods/Integration.php index f9eb1bfb7a..b213d6a6df 100644 --- a/src/Pods/Integration.php +++ b/src/Pods/Integration.php @@ -58,7 +58,7 @@ public function hook() { } if ( ! is_callable( $params[0]) ) { - _doing_it_wrong( 'hook', 'Pods Integration should have a callable for the first hook parameter', 'TBD' ); + _doing_it_wrong( 'hook', 'Pods Integration should have a callable for the first hook parameter', '2.8.0' ); } array_unshift( $params, $hook );