You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Added: WP-CLI > Added a new wp pods tools flush-cache WP-CLI command to flush the Pods caches. To flushes caches for a specific Pod, use wp pods tools flush-cache --pod=your_pod (@sc0ttkclark)
Added: DFV > Introduce window.PodsDFV.detectForm() and window.PodsDFV.detectField() helper methods to normalize everything going into the DFV API. (@sc0ttkclark)
Added: DFV > window.PodsDFV methods now accept null for pod, itemId, and formCounter values in various methods which will automatically detect+use the first pod, itemId, and formCounter on the screen. (@sc0ttkclark)
Added: API > New PHP function pods_is_demo() will allow Pods to offer streamlined demos using the one-click WASM demo. (@sc0ttkclark)
Added: API > New PHP function pods_clone_objects() and pods_clone_object() assist in cloning objects primarily used through callbacks. (@sc0ttkclark)
Added: API > New PHP function pods_debug_log() allows for logging exception messages that do not need to be shown on the screen. (@sc0ttkclark)
Added: API > New PHP function pods_get_item_object() allows for getting the WP object for an item based on the object type. This is similar to get_metadata() in WP core but as a general solution for any object. (@sc0ttkclark)
Added: API > New Pods::has_rows() method can be used instead of Pods::total() to just check if there were any rows returned. (@sc0ttkclark)
Added: Pods Field Output > You can now traverse into the fields parent (Taxonomies) and post_parent (Post Types) as relationships like parent.name or post_parent.post_title. This also works for post_author. (@sc0ttkclark)
Added: Pods Field Output > You can now call post_thumbnail.title, post_thumbnail.caption, post_thumbnail.description, post_thumbnail.mime_type, post_thumbnail.alt_text, post_thumbnail.width, post_thumbnail.height, post_thumbnail.filesize, post_thumbnail.dimensions, post_thumbnail.filename, and post_thumbnail.extension, and image metadata using post_thumbnail.image_meta.copyright. This also works for other attachments. (@sc0ttkclark)
Tweak: Edit Field Modal > Added additional text below the Required option when editing a boolean field to clarify that only the "Yes" option counts as valid. (@sc0ttkclark)
Tweak: Pods Field Output > Added full $params from Pods::field() to the filters pods_data_map_field_values_custom, pods_data_map_field_values_map_value, and pods_data_map_field_values_map_value_pre_check. (@sc0ttkclark)
Tweak: Pods Field Output > Bypass mapping values when in the form context to prevent conflicts with Avatar fields and other fields. (@sc0ttkclark)
Tweak: Migration > Abstracted the migration process on first edit of a Pod to detect orphaned fields on future edits with a notice on the screen about the repair. (@sc0ttkclark)
Tweak: API > Split up cache flushing method PodsAPI::cache_flush_pods() into a separate method PodsAPI::cache_flush_groups() and PodsAPI::cache_flush_fields() to more easily flush specific object types. (@sc0ttkclark)
Tweak: API > Passing more context into pods_podsrel_enabled() usage for future iteration work on certain areas of the code. (@sc0ttkclark)
Fixed: Edit Field Modal > Attempt to auto-fix pick_object for display when it is set to "pod" but the real object is "post_type" or "taxonomy". #7007 (@sc0tkclark)
Fixed: Components > Fixed PHP warnings with the Translate Pods component (@JoryHogeveen)
Fixed: Pods Shortcode > Bypass showing the Pods Shortcode button on TinyMCE editors when on an Elementor edit screen. (@sc0ttkclark)
Fixed: Stats Opt-in > Don't show the opt-in message on Pods content screens, only show it on pages under the Pods Admin menu. (@sc0ttkclark)
Fixed: Relationship Modal > Updated CSS to prevent the modal from being narrow. #6996 (@pedromfm, @sc0ttkclark)
Fixed: DFV > Handle false values as null properly to prevent JS TypeErrors. #6963 (@sc0ttkclark, @spiderneo)
Fixed: API > Normalize object_type for PodsAPI::get_table_info(). #7007 (@sc0tkclark)
Fixed: API > Return empty string when user context used instead of null for certain fields. (@sc0ttkclark)
Fixed: API > Use static cache for PodsMeta::groups_get() instead of static variable to allow flushing the groups cache. (@sc0ttkclark)
Fixed: Object Cache > When serializing Whatsit object, prevent serialized Closures being cached through Pods Alternative Cache. (@sc0ttkclark)
Fixed: Pods Field Output > Resolved issue with the fields parent (Taxonomies) and post_parent (Post Types) so they return the ID as they used to in previous Pods versions. (@sc0ttkclark)
Fixed: Pods Field Output > Resolve dot notation for attachments and post_thumbnail fields fallbacks when calling object fields like post_thumbnail.ID. #7005 (@sc0ttkclark)
Fixed: Bidirectional Relationships > Now using the correct related limit for bidirectional relationships instead of unlimited. (@sc0ttkclark)
Fixed: Pods Find Queries > References to .meta_value should always join the meta table when using a table-based Pod that supports meta-based storage. #7009 (@sc0ttkclark)
Fixed: API > Fixed filter_by_date usage of sprintf() to prevent PHP warnings. #6980 (@sc0ttkclark)