Over the weekend, Connections version 10.3 was released and installed thousands of times! This update builds upon the work done in version Connections 10.2 to bring full custom taxonomy support to Connections. This work should mostly complete this new feature and enable new possibilities.
What’s next? Connections 11 is next! This release will enable support for Tags, a long-requested feature. Look for this to come soon :)
Other changes in this update:
- NEW: Introduce
_length()
, deprecatecnGEO::convert()
, and refactor instances ofcnGEO::convert()
to utilize_length()
. - NEW: Introduce
Taxonomy::getQueryVar()
andTaxonomy::isPublicQueryable()
methods. - NEW: Introduce
cnRetrieve::getRegisteredQueryVars()
. - NEW: Introduce
Request
. - NEW: Introduce
Query\Taxonomy
andQuery\Term
classes. - NEW: Introduce the
cn-template-is-single
class to the shortcode markup. - TWEAK: Correct
allow_public_override
shortcode settings label and description. - TWEAK: Rename
lock
parameter incnRetrieve::entries()
toparse_request
. - TWEAK: Replace qualifier with import.
- TWEAK: Replace deprecated method with replacement method.
- TWEAK: Correct replacement method for deprecated method.
- TWEAK: Remove the legacy
wp_current_category
shortcode parameter. - TWEAK: Use absolute path to include deprecated category functions. The
processEntryCategory()
was not a global function as it should have been, it was local to another function. - TWEAK: Update
_::decodeJSON
to include additional error messages. - TWEAK: Refactor
_::maybeJSONdecode()
to be faster and more reliable. - TWEAK: Remove unnecessary
break
. - TWEAK: Combine global functions into a single file.
- TWEAK: Extract helper functions from the cnTerm object. Introduce
_getTermChildren
,_getTermHierarchy
,_padTermCounts
and several more helper functions. - TWEAK: Update cnTerm to use new taxonomy helper functions.
- TWEAK: Use the
_deprecated_function()
wrapper function in the cnTerm file. - TWEAK: Remove use of deprecated method.
- TWEAK: Add deprecated filter hooks for backwards compatibility.
- TWEAK: Replace legacy
cnTerm_Object
class withTaxonomy\Term
. - TWEAK: Remove use of deprecated methods in the legacy
cnCategory
class. - TWEAK: The name suffix should have a comma between it and the surname.
- TWEAK: The pagination template code had duplicate code in the if/else statement. Extract it.
- TWEAK: Change the classname
cn-is-single
tocn-list-item-is-single
for more accurate targeting. - TWEAK: Add timestamp to the template custom CSS file version string for cache busting.
- TWEAK: When parsing query request variables; parse arrays, filter, decode, and unslash.
- TWEAK: Refactor
cnRetrieve::entries()
to utilize bothRequest
andQuery\Taxonomy
to remove code duplication and optimize query performance. - TWEAK: Move the
Connections_Directory/Taxonomy/{$this->getSlug()}/Sanitize_Terms
filter toTaxonomy\AttachTerms
. - BUG: Add missing search results messages when filtering by district and county.
- BUG: Cast string to float.
- BUG: Do not disable the term checklist option when not displaying in the admin.
- BUG: Pass raw Organization and Department fields to
cnURL::permalink()
slug attribute. - BUG: Correct return value
isHierarchical()
. - BUG: Correctly order the country/region permalinks in the pagination.
- BUG: Pass raw names when creating permalinks for county, district, city, state, zipcode, and country permalinks.
- DEV: phpDoc corrections.
- DEV: Update
package.json
with latest dev dependencies andwebpack.config.js
configuration options. - DEV: Update dist files.
- DEV: Update vendor files.
- DEV: Comment out unused code, marked for removal at later date.
- DEV: Update
package.json
dependencies. - DEV: Introduce
wp_get_environment_type()
for backwards compatibility. - DEV: Introduce action/filter deprecation hooks. During AJAX, REST or if WP Environment is set to “production”, messages will be logged instead of output on screen.
- DEV: Use new deprecated filter hook wrapper function in the deprecated filters files.
- DEV: Use new deprecated action hook wrapper function in the deprecated action file.
- DEV: phpDoc corrections.
- DEV: Add @todos.
- OTHER: Update copyright year.
- OTHER: Bump support WordPress version to 5.8.