The past couple releases focused on Entry discovery, making it easier for your users to find similar and related directory Entries. This update focused on the ability for your users to be able to get back to an Entry they have recently viewed.
This update includes two new Content Blocks; Recently Viewed and Last Viewed. The Recently Viewed Content Block will display a list of the last several directory Entries your user has viewed. The Last Viewed Content Block is very similar. Instead of showing a list, it only shows the previous Entry, which was viewed by the user.
Other changes in this update:
- FEATURE: Introduce the Recently Viewed and Last Viewed Content Blocks.
- NEW: Introduce the
Connections_Directory/Block/Carouse/Query_Parametersfilter. - NEW: Add the
linkfield to the Entry REST endpoint. - NEW: Add support for the
excludeparameter in the REST API. - NEW: Introduce the Recently Viewed REST API Endpoint.
- TWEAK: Check for instance of
cnAddressbefore accessing its properties. - TWEAK: Keep core WP Editor from displaying the slider navigation text in the Carousel Block.
- TWEAK: Rename
cn-user.jstofrontend.js. - TWEAK: Delete the
frontend.min.jsfile as it is not needed since webpack will minify the file. - TWEAK: Remove unused code in the
frontend.jsfile. - TWEAK: Make a single call to
cnQuery::getVar()when rendering an Entry on the frontend for improved performance. - TWEAK: Remove several unnecessary object buffers when rendering an Entry.
- TWEAK: Rename Entry render variable to be more descriptive.
- TWEAK: Move logic on whether to display the character index and section head to within where the Entry is rendered.
- TWEAK: Remove the
cn-list-headdiv.id attribute. - TWEAK: Remove the
cn-list-footdiv.id attribute. - TWEAK: Apply
array_unique()andarray_filter()to the list head and body container classes. - TWEAK: Remove the
cn-list-footdiv.id attribute. - TWEAK: Remove the legacy
connections-listclass from the body container. - TWEAK: Move the setting of
$is_singleto the outside of the loop. No need to set it on each iteration. - TWEAK: Clean up the applied body classes. The
cn-list-rowandcn-list-row-alternateis applied only in the list view. Introduce thecn-list-itemandcn-is-singleclasses. - TWEAK: Minor CSS tweaks to remove unnecessary specificity.
- TWEAK: CSS clear after several core list containers. Necessary after removing the class that did the clear from the containers.
- TWEAK: Do not show the character index when viewing the single Entry.
- TWEAK: Abstract out template body section heading.
- TWEAK: Abstract out the generation of the Entry card classes.
- TWEAK: Ensure the
permission_callbackparameter is set when registering REST API Endpoints. - TWEAK: Add check to prevent index not found notice.
- TWEAK: Implement limit on the Team Block to ensure the page can be saved by WP.
- TWEAK: Add
'data-skip-lazy="1"if lazy loading isfalse. - TWEAK: Move cnArray to a namespaced class and stub out files and autoloading for other utility classes and functions to consolidate and better organize the codebase.
- TWEAK: Remove the use of a few deprecated React components in the Team and Upcoming blocks.
- TWEAK: Add
lodashas a script dependency for the frontend script bundle. - TWEAK: Finally deprecate the cnOutput class because it was ambiguous.
- TWEAK: Bumped “Tested up to:” to version 5.5 in readme.txt.
- TWEAK: Bump “Requires at least:” to version 5.0 in readme.txt.
- TWEAK: Update EntryName component with a
asPermalinkattribute. - TWEAK: Update the frontend script dependencies to support the Recently View Content Block.
- TWEAK: Add placeholder support to the Entry Image React component.
- TWEAK: Add default image width/height for unknown image types to prevent undefined index notifications.
- TWEAK: Deprecate several template actions, replacing them with namespaced hook handles.
- BUG: Correct another instance of implode “Passing glue string after array is deprecated.” notice.
- BUG: Correct the style applied to the
.cn-image-noneclass in the related carousels. - DEV: Remove extra newline.
- DEV: Include JavaScript Cookie v2.2.1 as a vendor library.
- DEV: Configure webpack entry point to create the frontend javascript bundle.
- DEV: Register and enqueue the frontend javascript bundle with WordPress.
- DEV: Remove commented code.
- DEV: Rename variable to camelCase.
- DEV: Remove comment block from CSS.
- DEV: phpDoc updates.
- DEV: Update Travis testing matrix.
- DEV: Update min/max WP version in requirements check.
- DEV: Update the dist files.

