Notas da versão 3.12.0: 11 novidades 25 melhorias 2 reforços de segurança
Novidade
- New in GravityView Pro: Live Filters, a sidebar of filters (checkboxes, radio buttons, dropdowns, ranges, dates, date ranges, and star ratings) that updates a View's results and counts without reloading the page, either with each choice or when the visitor clicks Apply;; Edit Window, which locks editing (and, optionally, deleting) an entry after a deadline: when the form's schedule ends, a set time after submission, on a fixed date, on the date in an entry's Date field, including GravityBoard…
- Added the GravityKit\GravityView\View\ViewPages class, whose get method returns the published pages that show a View and whether the search stopped at its limit.
- Added the gk-gravityview/view-pages-get ability, which returns the pages that show a View, or every embedded View the user can edit.
- Added the gk/gravityview/view/pages/max-pages filter to change the maximum number of pages read when finding which pages show each View (default: 500).
- Added the gk/gravityview/view/pages/post-types filter to change the post types searched for pages that show a View.
- Added the gk/gravityview/view/pages/content-meta-markers filter to set the post meta an integration stores its layouts in, so saving that meta clears the cached list of pages that show a View.
- Added View::shows_on, which checks whether an embed read from a post shows the View rather than a count.
- Added the gk/gravityview/rest/template-settings/view-schema filter to modify a template setting's schema for the View being written to on the Abilities and REST write path, so extensions that add per-View choices (such as joined-form sort fields) can expand options.
- Added the gk/gravityview/features/field-types filter to change the form field types a GravityView Pro feature adds, which GravityView uses to count the forms whose fields stop working when that feature is off.
- Added the gk/gravityview/deactivation/warning filter to add plain text to the warning in the GravityView deactivation dialog.
- GravityView Pro: Added the gk/gravityview/edit-entry/window-closed filter to reopen or close a View's Edit Window for one entry and action, without granting permission or overriding a Magic Link's expiry.
Melhoria
- "Pages with this View" submenu in the GravityKit toolbar menu, which links users who can edit a View to every published page that shows it, including page builder pages, from the View editor or any of those pages (requires WordPress 6.9 or newer).
- A GravityView page in GravityKit > Welcome, which replaces the Getting Started page and opens after activation, with an overview of what you can build, a "Get set up" checklist, courses and guides, and a one-click sample View for sites with no Views yet.
- Two guided tours in the View editor: "Build your first View", offered on the New View screen, and "See how it works", a tour of a finished View with a short clip for each step.
- Saving a page with a GravityView widget in Elementor or Beaver Builder stored a copy of the View, as the person saving the page saw it, with the page, so save those pages again in the builder after updating to replace the stored copy.
- [gvlogic logged_in="…"] without an if showed its [else] content to everyone, logged in or not, when Entry Tags 1.5.1 or GravityCharts 1.2 to 1.23.1 was active.
- Issues on the Edit Entry page since GravityView 3.11.0, on Views with "Prevent Direct Access" turned on and for users who cannot see private Views, such as Subscribers: A file added to an empty File Upload field with Multi-File Upload turned on was not saved even though "Entry Updated." appeared, and if the field was required, "This field is required." appeared and the entry could not be saved;; Multi-page forms moved to the next page when a field on the current page had an error, hiding the…
- Since GravityView 3.8.0, Single Entry and Edit Entry pages showed an error on sites with a View in an Elementor widget and a theme that adds custom fonts to Elementor, such as BuddyBoss Theme.
- Saving a View whose layout was inactive, such as a Map View while Maps was deactivated, erased its layout, fields, and widgets, so the View had to be built again.
- Since GravityView 2.29, pages loaded more slowly on sites with a permalink base such as /blog/%postname%/, Plain permalinks, Polylang showing the language code in every URL, an Entry Endpoint with capital letters, or Gravity Forms deactivated, because permalink rules were rebuilt on every page load.
- Issues in Views that combine forms with Multiple Forms: Entries were sorted in the wrong order when one form lacked the field the View sorts by and another plugin added its own sort;; No entries appeared when the View was sorted by a Time field.
- Shortcodes in the "No Entries Message" and "No Search Results Text" settings showed as typed, brackets included, when the View was embedded with its shortcode or in a block theme's template part, or when results updated without reloading the page.
- Issues with Views built or edited by AI agents: Fields were added empty, without their settings, such as a Custom Content field's text;; Adding or changing several fields or widgets at once removed the HTML from Custom Content;; Setting "Sort by field" to a form field through the GravityKit MCP server was rejected.
- Activating GravityView sometimes stayed on the Plugins screen instead of opening GravityView's page in GravityKit > Welcome.
- In the View editor, a field's gear button and settings window were named after the form field instead of the field's Label.
- The button that expands a field's settings in the View editor was announced as "undefined" to screen readers.
- ViewCollection::from_content now skips [gravityview] shortcodes inside HTML comments, since they never run, and reads the view_id attribute when id is empty.
- ViewCollection::from_post no longer finds Beaver Builder modules set to never show, disabled Divi modules, or shortcodes in Elementor data on a page taken out of Elementor.
- On combined Views, the query that gravityview/view/query receives for each added form now includes a GravityKit\GravityView\View\Union\MissingOrder sort for every View sort the form has no field for, which should be kept in place when changing the sorts.
- Changes to the gk-gravityview/view-settings-patch and gk-gravityview/view-config-apply abilities: Every rejected template setting is now listed under data.errors, and nothing is written when any setting is rejected;; An add-on setting sent as the dotted slug the schema returns, such as maps.map_type, is now saved to that add-on's settings instead of under an invalid name that had no effect;; A dotted setting for an inactive add-on (such as datatables.responsive without DataTables), an add-on…
- Re-enabling the gravityview/post_type/with_front filter after it was turned off made Views show "Page not found" until Settings > Permalinks was saved, instead of moving View URLs on the next page load.
- GravityView_Entry_Approval::update_approved called without a form ID cleared the View cache for form 0 instead of the entry's form, so Views kept showing old results after custom code approved an entry.
- Searching Payment Amount with a Slider in the Search Bar widget logged an "Array to string conversion" PHP warning on every search.
- On multisite networks, "Remove all data" in GravityView's Remove Data settings logged database errors for each site that had never used Gravity Forms.
- A View sorted by a field its form no longer has logged a "Trying to access array offset on null" PHP warning from Gravity Forms each time it was shown.
- Foundation to version 1.40.0.
Segurança
- "Enable Enhanced Security" turned on by default for new Views, so they display only through a block or shortcode that includes the View's secret (the block picker and the shortcode in the Publish box add it automatically), without changing existing Views.
- Added the gk/gravityview/view/secure-embed-default filter to control whether new Views start with "Enable Enhanced Security" turned on (return false to start them with it off, without affecting saved Views).