Releases: washingtonstateuniversity/hrs.wsu.edu
WP block editor integration
This release adds front- and back-end block editor integration. It aligns theme styles with the block editor syntax and adds a WP block scripts entry point and configuration to the theme test and build processes. The initial block scripts modify the style attributes of the button blocks to bring them in line with the default theme button styles.
This release also includes some general style updates, fixes, and reorganization. It deprecates several style components that have been replaced by block components.
Notable changes
Fixed
- Fix #95 Image
sizes
attribute mislabeled in lazy loader script. - 🎨 Fix #88 Make header margins more consistent and correct CSS override issue.
Changed
- 🔧 Switched to WordPress recommended ESLint configuration and updated build configs to work with blocks syntax.
- Update button styles to reflect modified WP block style options.
- Switch to 100% and max width on the main article content width to be more flexible and make better use of space on medium-width viewports.
- 🚚 Reorganize some style directories for clearer organization and naming. (Consolidate layout, template, and page styles into
layout
directory; Rename "global" to "environment" and move component-specific styles into "components"; Merge_elements.scss
into_components.scss
for easier tracking and to avoid duplication.)
Added
- Add script to modify WP block styles for various blocks.
- ✨ Script entry point to handle adding and modifying WP editor blocks.
- 🎨 Back end styles for the WP blocks we want to support.
- 🎨 Front end styles for the WP blocks we want to use. Some (like buttons and image galleries) merged with existing styles and others (like columns and responsive embeds) new or replacing existing styles.
Deprecated
- Classic-style image gallery.
- Old-style YouTube embed CSS using classes
embed-youtube
andyoutube-4x3
. Will be removed in the next minor version. - Several image classes that have been replaced by WP blocks.
Fix mistargeted Gravity Forms filter and increment WP supported
This release fixes an issue where custom Gravity Forms list field filters had targeted the wrong columns.
It also formally increments the WordPress supported and tested version up to 5.1.
Fixed
- Target the correct columns for the Gravity Forms list field filters and add an additional form.
WP Blocks Prep and Gravity forms mod
This branch includes several changes to prepare for WordPress 5.0 block features as well as a Gravity Forms plugin List field customization. It also includes several NPM package upgrades.
Fixed
- Updated syntax for the block editor "align wide" theme support.
Changed
- Move TablePress filter from setup to functions.
Added
- Filters and styles to adjust custom form fields, called from a central Gravity Forms setup function.
- Theme support flags for several block editor features.
Removed
- Disable the Customizer custom CSS option.
- Unset all of the parent theme page templates that are not being used. Will give preference to Builder and then the block editor.
- Delete the
gutenberg-beta
template. Now that WP 5.x has launched with the block editor the template is no longer needed.
No lazy load for data images
Disables the lazy load image swap method on data:
images. The data-src
JavaScript method of lazy loading images breaks on images with a data string source instead of a standard file path.
1.0.0 WSU Human Resource Services
This release marks the version 1.0 release of the WSU HRS child theme, including a lot of bug fixes, cleaning out old and unused markup and script, and some significant tooling changes. A detailed list of significant changes is available in the changelog and the commit history, but here is a summary of some big ones:
Added
- Performance: JS methods and WP filters to use intersection observer to lazy load offscreen images to help with performance.
- TablePress: filters and styles to add data attributes to all TablePress table cells to help with responsive layouts.
- WP Block Editor: initial support for WordPress 5.0+ and the new block editor (Gutenberg), including some filters to disable fine-grained editor style options. Note the theme has not been fully tested with the block editor, and though it is provisionally 5.0.2-stable, it needs more testing and still relies on the Classic Editor plugin because of Builder plugin requirements.
Changed
- CSS: Consolidated some CSS into the main HRS theme styles to save on resources and eliminate a bit of unnecessary CSS overwriting.
- JavaScript: Added Webpack (with Babel) to manage JS builds and selective polyfills to facilitate using modules and newer syntax for browsers that support it.
- Switched to the built in WordPress search functionality instead of a link to the WSU custom site search (but retained a link on the results page for users that need it).
Removed
- Unused CSS style rules
- No longer supporting versions of Internet Explorer below 11
MS SQL Connector
Adds a new class that handles connecting to and reading from external MS SQL databases. The class generally reflects the standard WP wpdb class, but uses MS SQL-style syntax for queries. This update also includes several query functions, template tags, and shortcodes for handling data retrieval and display.
Major Changes
Fixed
- ✏️ Wrong version number in
HRS_MSDB
related functions. - Extra debug messages in
HRS_MSDB
class methods.
Added
- ✨ New class
HRS_MSDB
that provides a variety of methods for connecting to and interacting with an SQL Server database. - Functions to fetch, format, and display data.
- Functions to handle preparing SQL statements for SQL Server requests.
- 🔧 A
.gitattributes
file to manage cross-environment settings and facilitate creating non-development zip files for download.
Changed
- Apply basic responsive tables CSS to all tables.
- Add missing documentation and tidy some function checks.
- 🎨 Adjust table style to semi-bold tableheaders.
⚠️ Add escaping functions and fix other PHPCS issues.- Adjust row list component class names to be a little more element agnostic.
Gutenberg prep work
Beginning to lay some foundations for a smooth transition to the Gutenberg editor. Cloning and adjusting the gutenberg beta page template from the Spine parent theme, adjusting some of Gutenberg's theme support options, and adding CSS for wide images.
CSS Grid Fallback
Fixes #31 by adding float fallbacks for elements dependent on CSS Grid layout.
Fix archive pagination
This should fix/close #55 and #56, which were both caused by the custom queries and the main query colliding in odd ways. Pagination technically worked, but repeated some number of posts based on the number ignored. Rather than add complexity to fix the post repetition & pagination problem, chose to reduce the number of queries to rely only on the main query. Will return to custom queries in the future as needed.
Pagination display fix
Fix #54 to correct display of the posts home page so that the feature and reminders sections only appear on the first page of results.