Releases: pods-framework/pods
Releases · pods-framework/pods
2.8.23 - July 4th, 2022
- Tweak: Added support for exporting post types and taxonomies to PHP for debugging purposes. While logged in as an admin, add
?pods_debug_register_export=1
to expose textareas on the page to get the code. (@sc0ttkclark) - Tweak: Added support for new
{@_current_page}
calculation value. (@sc0ttkclark) - Tweak: Added support for calculation values in conditional display tags like
[if field="_position" value="2"]
. #6513 (@sc0ttkclark) - Fixed: Resolved revision issues when
revisions_to_keep_limit
is set to 0 in the post type. It was supposed to see 0 and use the default revision limit. Instead, it was disabling the revisions for that post type. #6499 (@sc0ttkclark) - Fixed: Resolved potential PHP warnings on certain sites by preparing SQL queries separately from other string processing. #6556 #6555 #6554 (@JoryHogeveen, @sc0ttkclark)
- Fixed: Resolved potential PHP notices when getting table information in
PodsData::table()
. (@JoryHogeveen) - Fixed: Resolved potential PHP type conversion warnings by passing
SORT_REGULAR
to `array_unique()`` in the File field saving process. (@JoryHogeveen) - Fixed: Pods Auto Templates defaults for some fields were set to "true" and that is now treated as empty. The default for those fields are now empty as intended. This resolves notices on the Edit Pod screen about templates being used for Archives when Archives are disabled, but there was no template intentionally set for Archive. (@sc0ttkclark)
2.8.22.1 - July 3rd, 2022
- Fixed: Resolve potential PHP errors from Relationship/File field saves by ensuring consistent array structures.
2.8.22 - July 3rd, 2022
- Added: Support
IN
andNOT IN
comparisons for the Pods Templating[if]
conditional shortcode that checks if the current value is/isn't within a comma-separated list of values. (@sc0ttkclark) - Added: Support
=
and!=
comparisons when the current value is an array of values, it now confirms the value is/isn't within that array. (@sc0ttkclark) - Added: When saving pod items, support field-type specific save method for non-tableless field types for future flexibility. (@sc0ttkclark)
- Added: New
pods_query_prepare()
function maps topods_query()
but allows for distinct prepare usage instead of confusing array syntax. (@sc0ttkclark) - Added: Added new
Field::get_single_multi()
helper method to determine whether a field is using a single/multi format type. (@sc0ttkclark) - Tweak: When saving pod items, pre-process tableless field type data consistently to better support table-based storage. (@sc0ttkclark)
- Tweak: When saving pod items, allow filtering the list of processed data values that will be used to do the final save with
pods_api_save_pod_item_processed_data_to_save
. (@sc0ttkclark) - Tweak: Adjusted the prepared SQL statements to use the new
pods_query_prepare()
when doingwp_podsrel
table relationship lookups. (@sc0ttkclark) - Tweak: Filter
wp_podsrel
table relationship lookup related IDs the same way as meta-based related IDs get with thepods_api_lookup_related_items_related_ids_for_id
filter. (@sc0ttkclark) - Tweak: Support custom heading tags for the Heading field in the DFV-powered areas like the Edit Pod screen. (@sc0ttkclark)
- Tweak: Further lock down custom heading tags in PHP-powered forms so that they can only contain basic tag names. (@sc0ttkclark)
- Fixed: Avoid setting post terms that are empty when saving pod item. (@sc0ttkclark)
- Fixed: Dot-traversal in Pods Templating
[if]
conditional shortcodes references the correct pod and expected field path. (@sc0ttkclark)
2.8.21 - June 27th, 2022
- Fixed: When determining the first version installed of Pods, use the last known version instead of the current version. (@sc0ttkclark)
- Fixed: Increase the version used when determining defaults for Meta Integration and Meta Overrides. (@sc0ttkclark)
- Fixed: Allow language relationships with Polylang language taxonomy. #6541 #6540 (@JoryHogeveen)
- Fixed: Remove empty values from list of file types to prevent PHP warnings. #6544 #6543 (@JoryHogeveen)
- Fixed: Prevent errors on List Select fields if there are empty results. #6536 #6536 (@zrothauser)
2.8.20 - June 17th, 2022
- Fixed: Use the correct defaults for the new Pods Settings of Meta Integration and Meta Overrides. (@sc0ttkclark)
- Fixed: Use the correct defaults for Pods Settings when they return as a blank string. (@sc0ttkclark)
2.8.19 - June 13th, 2022
- Fixed: Theme views now load as expected, fixing an issue introduced in 2.8.18. (@sc0ttkclark)
2.8.18 - June 10th, 2022
- Added: New helper functions
pods_clean_memory()
andpods_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) - Added: New function
Pods::is_defined()
determines whether a Pod was defined or if it was generated adhoc when calling a non-defined Pod. (@sc0ttkclark, @JoryHogeveen) - Added: New function
Pods::is_valid()
replaces the logic inPods::valid()
to better follow the naming pattern used elsewhere in Pods.Pods::valid()
is not deprecated yet. (@sc0ttkclark) - Added: New functions
pods_static_cache_get()
,pods_static_cache_set()
, andpods_static_cache_clear()
abstract the static cache handling that would sometimes fail if the class was not available. (@sc0ttkclark) - Added: New filter
pods_init_register_assets_load_pods_dfv_on_front
which allows you to force loading Pods DFV scripts on the front of the site when needed. Normally they will be included but some plugins/themes may need them enqueued sooner. (@sc0ttkclark) - Tweak: Improved performance when using TranslatePress by optimizing how settings and blocks are handled to avoid extra
__()
translation calls. (@sc0ttkclark) - Tweak: Improved performance with Block configurations. (@sc0ttkclark)
- Tweak: Improved performance with existing content type checks. (@sc0ttkclark)
- Tweak: Improved performance by offering a new setting to enable/disable tracking changed fields. (@sc0ttkclark)
- Tweak: Improved performance by offering a new setting to enable/disable metadata integration. (@sc0ttkclark)
- Tweak: Improved performance and third party plugin compatibility by offering a new setting to enable/disable metadata display overrides for Relationship/File fields. (@sc0ttkclark)
- Tweak: Improved file types help text on the File field to describe how limiting file types works more clearly. (@sc0ttkclark)
- Tweak: Default input type for Relationships multiple-select is now List View. (@sc0ttkclark)
- Fixed: File path checks are now more strict and consistent across all Pods Views loading. (@sybrew from The SEO Framework team, @sc0ttkclark)
- Fixed: SVG and other file types would not properly match up when certain plugins add additional mime types to be supported. (@sc0ttkclark)
- Fixed: Improved fallback handling for DB table schema errors when trying to add a column that may already exist in the table. (@sc0ttkclark)
- Fixed: Support labels for HTML field types in more form areas. (@sc0ttkclark)
- Fixed:
PodsUI
now filters all field values instead of circumventing that when it's pulled from the table row already. (@sc0ttkclark)
2.8.17 - May 11th, 2022
- Fixed: Attempting to catch potential issues where an issue is detected with loading the Tribe Common library by introducing a wrapper function
pods_container()
to be used before callingtribe()
. (@sc0ttkclark)
2.8.16 - May 6th, 2022
- Added: More compatiblity with Advanced Relationship Storage Add-On from Pods Pro by SKCDEV which allows for saving table-based relationship fields during the normal save process. (@sc0ttkclark)
- Fixed: Booleans when saving to the database now prepare as
%d
instead of the generic%s
. (@sc0ttkclark) - Fixed: Additional SV file escaping on exports to prevent formulas from evaluating in certain spreadsheet apps unexpectedly. (@sc0ttkclark)
- Fixed: The old Pods / Pods API CLI commands were unintentially removed in Pods 2.8 and they have now been brought back as
wp pods-legacy
andwp pods-legacy-api
. (@sc0ttkclark) - Fixed: Improved the text / link for registering connections on Post Types and Taxonomies so they reference the correct object type. (@sc0ttkclark)
- Fixed: Multi-select fields were not saving properly in certain forms. #6498 #6216 (@zrothauser)
- Confirmed compatibility with WordPress 6.0.
2.8.15 - April 16th, 2022
- Added: New
pods_callback
support inPods::find()
so that you can pass a callback function to use forpods()
usage with relationships using theoutput
as "pods". This allows for using shared instances across large data sets to reduce time. (@sc0ttkclark) - Added: New property
$data->fetch_full
added toPodsData
which can be used to turn off additional fetch requests when all of the table data was already returned by the query witht.*
. (@sc0ttkclark) - Fixed: When using table-based fields and a non-simple relationship has a field in the table, it will still be expanded like a normal relationship field when requesting it by name with no traversal. (@sc0ttkclark)
- Fixed: Call
PodsField_Pick::simple_objects()
using the object instead of statically to prevent PHP notices. (@sc0ttkclark) - Fixed: Adjust the
Pods\REST\V1\Endpoints\Base::check_permission()
method so that it references the correct\Pods
object. (@sc0ttkclark)