Skip to content

Commit

Permalink
Merge pull request #838 from equalizedigital/release/1.18.0
Browse files Browse the repository at this point in the history
Backport Release/1.18.0
  • Loading branch information
pattonwebz authored Jan 17, 2025
2 parents a2827ca + eab96c8 commit e620f12
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 11 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/code-coverage-and-coveralls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

# Some images won't have svn available. Install it if that's the case.
- name: Install SVN
run: |
if ! command -v svn &> /dev/null; then
echo "Installing SVN..."
sudo apt-get update || { echo "Failed to update package lists"; exit 1; }
sudo apt-get install -y subversion || { echo "Failed to install SVN"; exit 1; }
else
echo "SVN is already installed"
fi
- name: Install WP
shell: bash
run: tests/bin/install-wp-tests.sh wordpress_tests root '' 127.0.0.1:3306 ${{ matrix.wp_version }}
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/deploy-on-release-to-dot-org.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ jobs:
tools: composer:v2
coverage: none

# Some images won't have svn available. Install it if that's the case.
- name: Install SVN
run: |
if ! command -v svn &> /dev/null; then
echo "Installing SVN..."
sudo apt-get update || { echo "Failed to update package lists"; exit 1; }
sudo apt-get install -y subversion || { echo "Failed to install SVN"; exit 1; }
else
echo "SVN is already installed"
fi
- name: Setup Node.js
uses: actions/setup-node@v4
with:
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,14 @@ jobs:

# Some images won't have svn available. Install it if that's the case.
- name: Install SVN
run: sudo apt-get update && sudo apt-get install -y subversion
run: |
if ! command -v svn &> /dev/null; then
echo "Installing SVN..."
sudo apt-get update || { echo "Failed to update package lists"; exit 1; }
sudo apt-get install -y subversion || { echo "Failed to install SVN"; exit 1; }
else
echo "SVN is already installed"
fi
- name: Install WP
shell: bash
Expand All @@ -91,4 +98,4 @@ jobs:
if: ${{ matrix.multisite == true }}
run: composer test
env:
WP_MULTISITE: 1
WP_MULTISITE: 1
4 changes: 2 additions & 2 deletions accessibility-checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: Accessibility Checker
* Plugin URI: https://a11ychecker.com
* Description: Audit and check your website for accessibility before you hit publish. In-post accessibility scanner and guidance.
* Version: 1.17.0
* Version: 1.18.0
* Author: Equalize Digital
* Author URI: https://equalizedigital.com
* License: GPL-2.0+
Expand All @@ -35,7 +35,7 @@

// Current plugin version.
if ( ! defined( 'EDAC_VERSION' ) ) {
define( 'EDAC_VERSION', '1.17.0' );
define( 'EDAC_VERSION', '1.18.0' );
}

// Current database version.
Expand Down
6 changes: 3 additions & 3 deletions includes/classes/class-rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,10 @@ public function clear_issues_for_post( $request ) {
return new \WP_REST_Response( [ 'message' => 'The ID is required to be passed.' ], 400 );
}

$json = $request->get_json_params();
$json = $request->get_json_params();
$post_id = (int) $request['id'];
if ( ! isset( $json['skip_post_exists_check'] ) ) {
$post_id = (int) $request['id'];
$post = get_post( $post_id );
$post = get_post( $post_id );
if ( ! is_object( $post ) ) {
return new \WP_REST_Response( [ 'message' => 'The post is not valid.' ], 400 );
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "accessibility-checker",
"version": "1.17.0",
"version": "1.18.0",
"description": "Audit and check your website for accessibility before you hit publish. In-post accessibility scanner and guidance.",
"author": "Equalize Digital",
"license": "GPL-2.0+",
Expand Down
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: equalizedigital, alh0319, stevejonesdev
Tags: accessibility, accessible, wcag, ada, WP accessibility
Requires at least: 6.2
Tested up to: 6.7.0
Stable tag: 1.17.0
Stable tag: 1.18.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -171,6 +171,12 @@ No, Accessibility Checker runs completely on your server and does not require yo

== Changelog ==

= 1.18.0 =
* New: Add a new fix for adding a new tab/window warning to links with target="_blank".
* Enahncement: Allow cache bypass from stats requests to force latest numbers.
* Enhancement: Make a clear-issues endpoint more usable in different situations.
* Removed: Removed some code that was trying to force no notifications on the plugin pages.

= 1.17.0 =
* New: Add a new fix for adding a new tab/window warning to links with target="_blank".
* New: Add a REST endpoint to retrieve a site scan summary.
Expand Down
2 changes: 0 additions & 2 deletions uninstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,8 @@
'edac_fix_focus_outline_color',
'edac_fix_force_link_underline',
'edac_fix_meta_viewport_scalable',
'edac_fix_meta-viewport-scalable',
'edac_fix_prevent_links_opening_in_new_windows',
'edac_fix_prevent_links_opening_new_windows',
'edac_fix_prevent-links-opening-new-windows',
'edac_fix_remove_tabindex',
'edac_fix_remove_title_if_preferred_accessible_name',
'edac_fix_search_label',
Expand Down

0 comments on commit e620f12

Please sign in to comment.