This update features a new Fields API. This remove duplicate throughout Connections providing more consistent, reliable, stable, and secure processing of form fields. This release is just a first step in refactoring all fields in Connections to use this new API.
The introduction of this new Fields API paves the way for making it easier to add Custom Fields to Connections and gets us one step closer to providing the solid base needed to add support for faceted search, an often requested feature.
Developers:
If you have your site environment set as development
, this release will generate many deprecated notices. This is expected and will improve in the next few releases.
This update also includes the following changes:
- NEW: Introduce the
_::isEmpty()
and_::notEmpty()
helper methods. - NEW: Introduce the
_string::applyPrefix()
helper method. - NEW: Introduce the Fields API.
- NEW: Introduce the helper
_escape
class. - NEW: Introduce
cnScript::maybeEnqueueStyle()
. - TWEAK: Remove unreachable
break
statements in switches. - TWEAK: Ensure deprecated messages are shown only when the environment type is set to
development
. - TWEAK: Allow
overflow-x
andoverflow-y
as valid inline style attributes. - TWEAK: Check for instance of Label before calling a method.
- TWEAK: Update deprecated method call with the updated replacement.
- TWEAK: Remove use of deprecated form field methods used on the Manage admin page.
- TWEAK: Conditionally enqueue the Leaflet library.
- TWEAK: Replace one-off code of fields in the Metabox API with fields created using the Fields API.
- TWEAK: Replace one-off code of fields in the Settings API with fields created using the Fields API.
- TWEAK: Change the init priority of the Metabox API to
11
. - BUG: Correct translated country name.
- BUG: Return empty string as default case in switch for HTML fields.
- BUG: No need to assign the CPT field in the Settings API to the variable as it will be rendered in the recursive call.
- OTHER: Readme.txt correction.
- OTHER: Correct misspelling.
- OTHER: Removed unused global variable.
- OTHER: Remove extra semi-colon.
- INTEGRATION: Update The Rank Math integration to change the robots meta to noindex the paginated directory results.
- COMPATIBILITY: Remove the single shortcode filter if the PageLayer plugin is active.
- DEV: phpDoc corrections.
- DEV: Public function should be static.
- DEV: Correct code formatting.
- DEV: phpDoc updates to cnHTML; deprecating all methods.
- DEV: Add
_deprecated_function()
calls to cnHTML methods. - DEV: Add
_deprecated_argument()
calls to cnHTML methods.