Skip to content

Commit

Permalink
Merge branch 'release/1.2.4' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
admturner committed Dec 8, 2023
2 parents 33c6a06 + 2cb411f commit 48c2c65
Show file tree
Hide file tree
Showing 7 changed files with 1,039 additions and 1,148 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,22 @@ Changelog formatting (https://keepachangelog.com/en/1.0.0/):
### Security (in case of vulnerabilities.)
-->

## 1.2.4 (2023-12-08)

### Changed

- Bump WP tested-to to 6.4.2, close #58. (e5361dd)
- Allow php codesniffer plugins. (01e6003)

### Fixed

- Fix #56 crash on null WSU API response. (01e6003)

### Security

- Bump postcss from 8.4.25 to 8.4.31. (c5408c1)
- Bump stylelint from 14.6.0 to 15.10.1. (d8a2b30)

## 1.2.3 (2023-04-11)

### Changed
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# WSUWP A11y Status

[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Build Status](https://github.com/washingtonstateuniversity/WSUWP-Plugin-A11y-Status/actions/workflows/coding-standards.yml/badge.svg)](https://github.com/washingtonstateuniversity/WSUWP-Plugin-A11y-Status/actions) [![Release Version](https://img.shields.io/github/v/release/washingtonstateuniversity/WSUWP-Plugin-A11y-Status)](https://github.com/washingtonstateuniversity/WSUWP-Plugin-A11y-Status/releases/latest) ![WordPress tested up to version 6.2](https://img.shields.io/badge/WordPress-v6.2%20tested-success.svg) [![GPLv3 License](https://img.shields.io/github/license/washingtonstateuniversity/WSUWP-Plugin-A11y-Status)](https://github.com/washingtonstateuniversity/WSUWP-Plugin-A11y-Status/blob/develop/LICENSE.md)
[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Build Status](https://github.com/washingtonstateuniversity/WSUWP-Plugin-A11y-Status/actions/workflows/coding-standards.yml/badge.svg)](https://github.com/washingtonstateuniversity/WSUWP-Plugin-A11y-Status/actions) [![Release Version](https://img.shields.io/github/v/release/washingtonstateuniversity/WSUWP-Plugin-A11y-Status)](https://github.com/washingtonstateuniversity/WSUWP-Plugin-A11y-Status/releases/latest) ![WordPress tested up to version 6.4.2](https://img.shields.io/badge/WordPress-v6.4.2%20tested-success.svg) [![GPLv3 License](https://img.shields.io/github/license/washingtonstateuniversity/WSUWP-Plugin-A11y-Status)](https://github.com/washingtonstateuniversity/WSUWP-Plugin-A11y-Status/blob/develop/LICENSE.md)

## Overview

Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,10 @@
"scripts": {
"format": "phpcbf --standard=phpcs.xml.dist --report=summary,source",
"lint": "phpcs --colors"
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
6 changes: 6 additions & 0 deletions includes/class-wsu-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ public function fetch_api_response() {

// Parse the desired content from the API response.
$this->result = json_decode( wp_remote_retrieve_body( $this->wsu_api_response ), true );

// The WSU API can return a null result with a 200 status code.
if ( ! is_array( $this->result ) ) {
return false;
}

$this->result = array_shift( $this->result );

// Sanitize API data for saving in the database.
Expand Down
Loading

0 comments on commit 48c2c65

Please sign in to comment.