Skip to content

Commit fb04bca

Browse files
authored
Merge pull request #1263 from equalizedigital/release/1.34.0
Release v1.34.0
2 parents 0b5b9ed + b62f6f0 commit fb04bca

File tree

218 files changed

+2303
-1464
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+2303
-1464
lines changed

.github/workflows/security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
# Don't run the cronjob in this workflow on forks.
25-
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository_owner == 'Yoast')
25+
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository_owner == 'equalizedigital')
2626

2727
steps:
2828
- name: Checkout code
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Verify hooks docs
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.php'
7+
push:
8+
branches:
9+
- develop
10+
11+
jobs:
12+
verify-docs:
13+
name: Regenerate and verify docs/hooks.md
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup PHP
20+
uses: shivammathur/setup-php@v2
21+
with:
22+
php-version: '8.0'
23+
24+
- name: Show PHP version
25+
run: php -v
26+
27+
- name: Regenerate hooks docs
28+
run: php tools/generate-hooks-docs.php
29+
30+
- name: Create a pull request if docs/hooks.md changed
31+
uses: peter-evans/create-pull-request@v7
32+
with:
33+
token: ${{ secrets.GITHUB_TOKEN }}
34+
commit-message: "docs: regenerate hooks docs"
35+
title: "chore: regenerate hooks docs"
36+
body: |
37+
Automated regeneration of `docs/hooks.md` by CI.
38+
39+
This PR was created by the verify-hooks-docs workflow because the generated
40+
hooks documentation changed when the code in this PR was inspected.
41+
branch: automation/regenerate-hooks-docs-${{ github.run_id }}
42+
base: develop
43+
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

.phpcs.xml.dist

Lines changed: 0 additions & 58 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,14 @@ There are various ways you can contribute:
104104

105105
* [Raise an issue](https://github.com/equalizedigital/accessibility-checker/issues) on GitHub.
106106
* Send us a Pull Request with your bug fixes and/or new features.
107+
108+
## Developer docs
109+
110+
This repository includes generated developer documentation to make it easier to work with the plugin:
111+
112+
- `docs/hooks.md` — A generated inventory of all actions and filters in the plugin. Regenerate with:
113+
114+
```bash
115+
composer run generate-hooks-docs
116+
```
117+

accessibility-checker.php

Lines changed: 2 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.33.0
13+
* Version: 1.34.0
1414
* Requires PHP: 7.4
1515
* Author: Equalize Digital
1616
* Author URI: https://equalizedigital.com
@@ -36,7 +36,7 @@
3636

3737
// Current plugin version.
3838
if ( ! defined( 'EDAC_VERSION' ) ) {
39-
define( 'EDAC_VERSION', '1.33.0' );
39+
define( 'EDAC_VERSION', '1.34.0' );
4040
}
4141

4242
// Current database version.

admin/class-admin-notices.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ public function edac_black_friday_notice() {
9797
}
9898

9999
// Check if the notice has been dismissed.
100-
if ( absint( get_option( 'edac_black_friday_2024_notice_dismiss', 0 ) ) ) {
100+
if ( absint( get_option( 'edac_black_friday_2025_notice_dismiss', 0 ) ) ) {
101101
return;
102102
}
103103

104-
// Show from November 25 to December 03.
104+
// Show from November 24 to December 03.
105105
$current_date = date_i18n( 'Ymd' ); // Use date_i18n for localization.
106-
$start_date = '20241125';
107-
$end_date = '20241203';
106+
$start_date = '20251124';
107+
$end_date = '20251203';
108108

109109
if ( $current_date >= $start_date && $current_date <= $end_date ) {
110110

@@ -127,9 +127,9 @@ public function edac_get_black_friday_message() {
127127
// Construct the promotional message.
128128
$message = '<div class="edac_black_friday_notice notice notice-info is-dismissible">';
129129
$message .= '<p><strong>' . esc_html__( '🎉 Black Friday special! 🎉', 'accessibility-checker' ) . '</strong><br />';
130-
$message .= esc_html__( 'Upgrade to a paid version of Accessibility Checker from November 25th to December 3rd and get 30% off! Full site scanning, site-wide open issues report, ignore logs, and more.', 'accessibility-checker' ) . '<br />';
131-
$message .= '<a class="button button-primary" href="' . esc_url( edac_link_wrapper( 'https://my.equalizedigital.com/support/pre-sale-questions/', 'admin-notice', 'BF2025-presale', false ) ) . '">' . esc_html__( 'Ask a Pre-Sale Question', 'accessibility-checker' ) . '</a> ';
132-
$message .= '<a class="button button-primary" href="' . esc_url( edac_link_wrapper( 'https://equalizedigital.com/accessibility-checker/pricing/', 'admin-notice', 'BF2025-pricing', false ) ) . '">' . esc_html__( 'Upgrade Now', 'accessibility-checker' ) . '</a></p>';
130+
$message .= esc_html__( 'Upgrade to a paid version of Accessibility Checker from November 24th to December 3rd and get 30% off! Full site scanning, site-wide open issues report, ignore logs, and more.', 'accessibility-checker' ) . '<br />';
131+
$message .= '<a class="button button-primary" href="' . esc_url( edac_link_wrapper( 'https://my.equalizedigital.com/support/pre-sale-questions/', 'admin-notice', 'BlackFriday25-presale', false ) ) . '">' . esc_html__( 'Ask a Pre-Sale Question', 'accessibility-checker' ) . '</a> ';
132+
$message .= '<a class="button button-primary" href="' . esc_url( edac_link_wrapper( 'https://equalizedigital.com/accessibility-checker/pricing/', 'admin-notice', 'BlackFriday25-pricing', false ) ) . '">' . esc_html__( 'Upgrade Now', 'accessibility-checker' ) . '</a></p>';
133133
$message .= '</div>';
134134

135135
return $message;
@@ -153,7 +153,10 @@ public function edac_black_friday_notice_ajax() {
153153

154154
}
155155

156-
$results = update_option( 'edac_black_friday_2024_notice_dismiss', true );
156+
$results = update_option( 'edac_black_friday_2025_notice_dismiss', true );
157+
// Delete old options if they exist.
158+
delete_option( 'edac_black_friday_2024_notice_dismiss' );
159+
delete_option( 'edac_black_friday_2023_notice_dismiss' );
157160

158161
if ( ! $results ) {
159162

admin/class-widgets.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,22 +194,23 @@ public function render_dashboard_scan_summary() {
194194
foreach ( $post_types as $post_type ) {
195195

196196
$post_types_to_check = array_merge( [ 'post', 'page' ], $scannable_post_types );
197+
$post_type_label = edac_get_post_type_label( $post_type );
197198

198199
if ( in_array( $post_type, $post_types_to_check, true ) ) {
199200

200201
if ( in_array( $post_type, $scannable_post_types, true ) ) {
201202

202203
$html .= '
203204
<tr>
204-
<th scope="col">' . esc_html( ucwords( $post_type ) ) . '</th>
205+
<th scope="col">' . esc_html( $post_type_label ) . '</th>
205206
<td id="' . esc_attr( $post_type ) . '-errors">-</td>
206207
<td id="' . esc_attr( $post_type ) . '-contrast-errors">-</td>
207208
<td id="' . esc_attr( $post_type ) . '-warnings">-</td>
208209
</tr>';
209210
} else {
210211
$html .= '
211212
<tr>
212-
<th scope="col">' . esc_html( ucwords( $post_type ) ) . '</th>
213+
<th scope="col">' . esc_html( $post_type_label ) . '</th>
213214
<td>-</td>
214215
<td>-</td>
215216
<td>-</td>
@@ -220,7 +221,7 @@ public function render_dashboard_scan_summary() {
220221

221222
$html .= '
222223
<tr >
223-
<th scope="col">' . esc_html( ucwords( $post_type ) ) . '</th>
224+
<th scope="col">' . esc_html( $post_type_label ) . '</th>
224225
<td>-</td>
225226
<td>-</td>
226227
<td>-</td>
@@ -240,7 +241,7 @@ public function render_dashboard_scan_summary() {
240241
);
241242
$html .= '
242243
<tr >
243-
<th scope="col">' . esc_html( ucwords( $post_type ) ) . '</th>
244+
<th scope="col">' . esc_html( $post_type_label ) . '</th>
244245
<td colspan="3">
245246
<div class="edac-issues-summary-notice-upgrade-to-edacp">
246247
<a href="' . esc_url( $non_scannable_post_type_pro_link ) . '">

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,9 @@
7979
"test": [
8080
"@php ./vendor/phpunit/phpunit/phpunit --testdox"
8181
]
82+
,
83+
"generate-hooks-docs": [
84+
"@php tools/generate-hooks-docs.php"
85+
]
8286
}
8387
}

0 commit comments

Comments
 (0)