Skip to content

Commit 6039627

Browse files
authored
Merge pull request #626 from equalizedigital/release/1.12.0
Release v1.12.0
2 parents 74ec4d3 + f921ce7 commit 6039627

24 files changed

Lines changed: 462 additions & 854 deletions

.github/workflows/deploy-on-release-to-dot-org.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,3 @@ jobs:
4545
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
4646
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
4747
BUILD_DIR: ./dist/${{ github.event.repository.name }}/
48-
49-
- name: Upload release asset
50-
if: github.event.release # can only run in context of a release
51-
uses: actions/upload-release-asset@v1
52-
env:
53-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54-
with:
55-
upload_url: ${{ github.event.release.upload_url }}
56-
asset_path: ${{ steps.dist-build.outputs.zip-path }}
57-
asset_name: ${{ github.event.repository.name }}.zip
58-
asset_content_type: application/zip

accessibility-checker.php

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Plugin Name: Accessibility Checker
1111
* Plugin URI: https://a11ychecker.com
1212
* Description: Audit and check your website for accessibility before you hit publish. In-post accessibility scanner and guidance.
13-
* Version: 1.11.2
13+
* Version: 1.12.0
1414
* Author: Equalize Digital
1515
* Author URI: https://equalizedigital.com
1616
* License: GPL-2.0+
@@ -35,7 +35,7 @@
3535

3636
// Current plugin version.
3737
if ( ! defined( 'EDAC_VERSION' ) ) {
38-
define( 'EDAC_VERSION', '1.11.2' );
38+
define( 'EDAC_VERSION', '1.12.0' );
3939
}
4040

4141
// Current database version.
@@ -149,6 +149,17 @@ function edac_register_rules() {
149149
// If we got this far, this is the 1st time we called this function.
150150
// We need to load the rules from the filesystem, and apply any filters.
151151
$default_rules = include __DIR__ . '/includes/rules.php';
152+
/**
153+
* Filter the default rules.
154+
*
155+
* Allows removing or adding rules. If you are adding a rule make
156+
* sure you have added a function matching the pattern:
157+
* `edac_rule_{$rule_id}`.
158+
*
159+
* @since 1.4.0
160+
*
161+
* @param array $default_rules The default rules.
162+
*/
152163
$default_rules = apply_filters( 'edac_filter_register_rules', $default_rules );
153164

154165
return $default_rules;

admin/class-admin-notices.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,13 @@ public function edac_review_notice_ajax() {
350350
* @return string
351351
*/
352352
public function edac_password_protected_notice_text() {
353+
/**
354+
* Filter the password protected notice text.
355+
*
356+
* @since 1.4.0
357+
*
358+
* @param string $text The password protected notice text.
359+
*/
353360
return apply_filters(
354361
'edac_filter_password_protected_notice_text',
355362
sprintf(

admin/class-ajax.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,13 @@ function ( $a, $b ) {
290290
$rules = array_merge( $error_rules, $warning_rules, $passed_rules );
291291

292292
if ( $rules ) {
293+
/**
294+
* Filters if a user can ignore issues.
295+
*
296+
* @since 1.4.0
297+
*
298+
* @allowed bool True if allowed, false if not
299+
*/
293300
$ignore_permission = apply_filters( 'edac_ignore_permission', true );
294301
foreach ( $rules as $rule ) {
295302
// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching -- Using direct query for interacting with custom database, safe variable used for table name, caching not required for one time operation.
@@ -509,6 +516,14 @@ public function readability() {
509516
}
510517
}
511518

519+
/**
520+
* Filter the content used for reading grade readability analysis.
521+
*
522+
* @since 1.4.0
523+
*
524+
* @param string $content The content to be filtered.
525+
* @param int $post_id The post ID.
526+
*/
512527
$content = apply_filters( 'edac_filter_readability_content', $content, $post_id );
513528
$content = wp_filter_nohtml_kses( $content );
514529
$content = str_replace( ']]>', ']]>', $content );

admin/class-insert-rule-data.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,15 @@ public function insert( object $post, string $rule, string $ruletype, string $ru
110110
// Insert new records.
111111
if ( ! $results ) {
112112

113-
// filter post types.
113+
/**
114+
* Filter the rule data before inserting it into the database.
115+
*
116+
* This data will be sanitized after the filter is applied.
117+
*
118+
* @since 1.4.0
119+
*
120+
* @param array $rule_data The rule data.
121+
*/
114122
$rule_data = apply_filters( 'edac_filter_insert_rule_data', $rule_data );
115123

116124
// Sanitize rule data since it is filtered, and we can't be sure

admin/class-meta-boxes.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,18 @@ public function register_meta_boxes(): void {
5454
* @return void
5555
*/
5656
public function render(): void {
57+
/**
58+
* Fires before the meta box is rendered.
59+
*
60+
* @since 1.10.0
61+
*/
5762
do_action( 'edac_before_meta_box' );
5863
include_once plugin_dir_path( __DIR__ ) . 'partials/custom-meta-box.php';
64+
/**
65+
* Fires after the meta box is rendered.
66+
*
67+
* @since 1.10.0
68+
*/
5969
do_action( 'edac_after_meta_box' );
6070
}
6171
}

admin/class-scans-stats.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ function ( $item ) {
317317
$formatting['passed_percentage_formatted'] = Helpers::format_percentage( $data['passed_percentage'] );
318318
$formatting['avg_issue_density_percentage_formatted'] = Helpers::format_percentage( $data['avg_issue_density_percentage'] );
319319

320+
$formatting['cached_at_formatted'] = Helpers::format_date( $data['cached_at'], true );
321+
320322
$data = array_merge( $data, $formatting );
321323

322324
if ( $data['posts_scanned'] > 0 ) {

admin/class-welcome-page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public static function render_summary() {
207207
<div class="edac-inner-row">
208208
<?php if ( $summary['fullscan_completed_at'] > 0 ) : ?>
209209
<div class="edac-stat-number edac-timestamp-to-local">
210-
<?php echo esc_html( $summary['fullscan_completed_at_formatted'] ); ?>
210+
<?php echo isset( $summary['cached_at_formatted'] ) ? esc_html( $summary['cached_at_formatted'] ) : esc_html( $summary['fullscan_completed_at_formatted'] ); ?>
211211
</div>
212212
<?php else : ?>
213213
<div class="edac-stat-number">

admin/site-health/class-information.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Information {
1818
*/
1919
public function __construct() {
2020
}
21-
21+
2222
/**
2323
* Initialize class hooks.
2424
*
@@ -63,7 +63,15 @@ private function get_edac_data() {
6363
$information[ $key ] = $class->get();
6464
}
6565

66-
// Allow extensions to add their own debug information that's specific to EDAC.
66+
/**
67+
* Filter the debug information.
68+
*
69+
* Allows extensions to add their own debug information that's specific to EDAC.
70+
*
71+
* @since 1.6.10
72+
*
73+
* @param array $information The debug information.
74+
*/
6775
return apply_filters( 'edac_debug_information', $information );
6876
}
6977
}

changelog.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
Newer versions can be found in readme.txt.
22

3+
= 1.9.3 =
4+
* Updated: capability checks for the welcome page, dashboard widget, and admin notices
5+
6+
= 1.9.2 =
7+
* Fixed: filtered rules are not passed to the frontend highlighter, avoiding 'null' state issues
8+
* Updated: frontend highlighter buttons to be disabled until issues are confirmed
9+
* Updated: frontend highlighter buttons to show only after we know there are issues to display
10+
* Updated: frontend highlighter to not show buttons if none are returned
11+
12+
= 1.9.1 =
13+
* Updated: `edac_include_rules_files to fire on init action to fix the `edac_filter_register_rules` filter timing
14+
15+
= 1.9.0 =
16+
* Created: class that creates the accessibility statement on activation
17+
* Removed: custom database query that checked for existing accessibility statement in exchange for the `get_page_by_path()` function
18+
* Fixed: bug with trying to compare the simplified summary ordinal value and added fallback
19+
* Removed: `wp_send_json_error()` from `simplified_summary` Ajax function when the simplified summary is empty
20+
* Added: simplified summary grade*level, message, and icon logic to the `summary()` Ajax
21+
* Fixed: issue with the submit button text showing as `Submit Query` in Firefox.
22+
* Updated: missing transcript rule to skip certain types of links
23+
* Added: missing UTM parameters to the welcome page URLs.
24+
* Removed: legacy system information code
25+
* Removed: cbschuld/browser.php composer package
26+
* Added: class structure for site health
27+
* Added: site health health information for free, pro, and audit history plugins
28+
* Added: update database class
29+
* Removed: `edac_before_page_render` functions from the main file
30+
* Added: frontend validate class
31+
* Added: frontend validate unit tests
32+
* Removed: unused new window warning meta update functions
33+
* Fixed: front end highlight focus issue
34+
* Added: summary generator class to replace the `edac_summary()` function
35+
* Deprecated: `edac_summary()` function
36+
337
= 1.8.1 =
438
* Fixed: false positives on the incorrect heading order rule
539
* Added: fallback to determine ordinal when php intl extension is not installed

0 commit comments

Comments
 (0)