diff --git a/.github/workflows/code-coverage-and-coveralls.yml b/.github/workflows/code-coverage-and-coveralls.yml index 780f65a4..89034028 100644 --- a/.github/workflows/code-coverage-and-coveralls.yml +++ b/.github/workflows/code-coverage-and-coveralls.yml @@ -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 }} diff --git a/.github/workflows/deploy-on-release-to-dot-org.yml b/.github/workflows/deploy-on-release-to-dot-org.yml index 8865b217..4cd5062a 100644 --- a/.github/workflows/deploy-on-release-to-dot-org.yml +++ b/.github/workflows/deploy-on-release-to-dot-org.yml @@ -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: diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index c8908b86..0abb947b 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -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 @@ -91,4 +98,4 @@ jobs: if: ${{ matrix.multisite == true }} run: composer test env: - WP_MULTISITE: 1 \ No newline at end of file + WP_MULTISITE: 1 diff --git a/accessibility-checker.php b/accessibility-checker.php index f40bffa0..5b81adb0 100755 --- a/accessibility-checker.php +++ b/accessibility-checker.php @@ -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+ @@ -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. diff --git a/includes/classes/class-rest-api.php b/includes/classes/class-rest-api.php index 6d689059..1233ac15 100644 --- a/includes/classes/class-rest-api.php +++ b/includes/classes/class-rest-api.php @@ -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 ); } diff --git a/package.json b/package.json index a0124dcf..6c9fe061 100644 --- a/package.json +++ b/package.json @@ -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+", diff --git a/readme.txt b/readme.txt index 9b222c2d..bb29d04d 100644 --- a/readme.txt +++ b/readme.txt @@ -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 @@ -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. diff --git a/uninstall.php b/uninstall.php index 24ff28b8..b8d3de2b 100644 --- a/uninstall.php +++ b/uninstall.php @@ -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',