Skip to content

Commit c816e66

Browse files
authored
Merge pull request #715 from equalizedigital/release/1.15.0
Release v1.15.0
2 parents 8a4c617 + c4ad1a7 commit c816e66

34 files changed

Lines changed: 1709 additions & 158 deletions

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!-- Always provide a short description -->
2+
3+
## Checklist
4+
5+
- [ ] PR is linked to the main issue in the repo
6+
- [ ] Tests are added that cover changes

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.14.3
13+
* Version: 1.15.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.14.3' );
38+
define( 'EDAC_VERSION', '1.15.0' );
3939
}
4040

4141
// Current database version.

admin/class-admin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class Admin {
2727
/**
2828
* Class constructor for injecting dependencies.
2929
*
30-
* @param Meta_Boxes|null $meta_boxes Meta boxes instance.
30+
* @param Meta_Boxes $meta_boxes Meta boxes instance.
3131
*/
32-
public function __construct( Meta_Boxes $meta_boxes = null ) {
32+
public function __construct( Meta_Boxes $meta_boxes ) {
3333
$this->meta_boxes = $meta_boxes;
3434
}
3535

admin/class-helpers.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ public static function format_date( $date, $include_time = false ) {
120120
}
121121
}
122122

123-
$formatted_date = $datetime->format( $format );
124-
125-
return $formatted_date;
123+
return $datetime->format( $format );
126124
}
127125

128126
/**

admin/class-issues-query.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ public function __construct( $filter = [], $record_limit = 100000, $flags = self
125125
* @return string $sql .
126126
*/
127127
public function get_sql() {
128-
$sql = $this->query['select'] . ' ' . $this->query['from'] . ' ' . $this->query['where_base'] . ' ' . $this->query['filters'] . ' ' . $this->query['limit'];
129-
130-
return $sql;
128+
return $this->query['select'] . ' ' . $this->query['from'] . ' ' . $this->query['where_base'] . ' ' . $this->query['filters'] . ' ' . $this->query['limit'];
131129
}
132130

133131

changelog.txt

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

3+
= 1.11.2
4+
* Fixed: Avoid displaying `0th` for readability score
5+
* Removed: Some custom WP Playground detection code
6+
7+
= 1.11.1 =
8+
* Fixed: type Casting on several rules
9+
* Fixed: strict data comparison on several rules
10+
* Updated: empty heading tag rule to consider aria-label
11+
12+
= 1.11.0 =
13+
* Updated: Tested up to WP 6.5.2
14+
* Improved: Better detection of the underlined text rule for more accurate results
15+
* Improved: PHP 8.2 compatibility with the TextStatistics library
16+
* Added: Opt-in modal for users to subscribe to the Equalize Digital newsletter with less steps
17+
318
= 1.10.2 =
419
* Updated: Tested up to WP 6.5.0
520

composer.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@
4444
"wp-coding-standards/wpcs": "^3.0",
4545
"equalizedigital/accessibility-checker-wp-env": "*",
4646
"doctrine/instantiator": "^1.3.1",
47-
"wp-phpunit/wp-phpunit": "*"
47+
"wp-phpunit/wp-phpunit": "*",
48+
"phpstan/phpstan": "^1.11",
49+
"phpstan/extension-installer": "^1.4",
50+
"szepeviktor/phpstan-wordpress": "^1.3"
4851
},
4952
"require": {
5053
"davechild/textstatistics": "dev-master",
@@ -56,10 +59,16 @@
5659
"admin/",
5760
"includes/classes/",
5861
"includes/deprecated/"
59-
]
62+
],
63+
"psr-4": {
64+
"EqualizeDigital\\AccessibilityChecker\\": "includes/classes/"
65+
}
6066
},
6167
"autoload-dev": {
62-
"classmap": []
68+
"classmap": [],
69+
"psr-4": {
70+
"EqualizeDigital\\AccessibilityChecker\\Tests\\TestHelpers\\": "tests/phpunit/TestHelpers/"
71+
}
6372
},
6473
"scripts": {
6574
"lint": [
@@ -75,4 +84,4 @@
7584
"@php ./vendor/phpunit/phpunit/phpunit --testdox"
7685
]
7786
}
78-
}
87+
}

0 commit comments

Comments
 (0)