Plugin Directory

Changeset 3081378

Timestamp:
05/05/2024 02:18:28 AM (3 months ago)
Author:
stevejonesdev
Message:

release v1.11.1

Location:
accessibility-checker
Files:
42 edited
1 copied

Legend:

Unmodified
Added
Removed
  • accessibility-checker/tags/1.11.1/accessibility-checker.php

    r3080015 r3081378  
    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.0
     13 * Version:           1.11.
    1414 * Author:            Equalize Digital
    1515 * Author URI:        https://equalizedigital.com
     
    4242// Current plugin version.
    4343if ( ! defined( 'EDAC_VERSION' ) ) {
    44     define( 'EDAC_VERSION', '1.11.0' );
     44    define( 'EDAC_VERSION', '1.11.' );
    4545}
    4646
  • accessibility-checker/tags/1.11.1/admin/class-admin-notices.php

    r3080015 r3081378  
    267267
    268268        // first time if notice has never been shown wait 14 days.
    269         if ( false === $edac_review_notice_reminder && false === $edac_review_notice ) {
     269        if ( false === $edac_review_notice_reminder && ) {
    270270            // if option isn't set and plugin has been active for more than 14 days show notice. This is for current users.
    271271            if ( edac_days_active() > 14 ) {
  • accessibility-checker/tags/1.11.1/includes/rules/empty_button.php

    r3080015 r3081378  
    2828    foreach ( $buttons as $button ) {
    2929        if (
    30             str_ireplace( [ ' ', ' ', '-', '_' ], '', trim( $button->plaintext ) ) === ''
    31             && $button->getAttribute( 'aria-label' ) === ''
    32             && $button->getAttribute( 'title' ) === ''
     30           
     31            &&
     32            &&
    3333        ) {
    3434
     
    4040            if (
    4141                '' !== $error_code
    42                 && ( ! isset( $image[0] ) || trim( $image[0]->getAttribute( 'alt' ) ) === '' )
    43                 && ( ! isset( $input[0] ) || trim( $input[0]->getAttribute( 'value' ) ) === '' )
     42                && ( ! isset( $image[0] ) || )
     43                && ( ! isset( $input[0] ) || )
    4444                && (
    4545                    ! isset( $i[0] ) ||
    4646                    (
    47                         ( trim( $i[0]->getAttribute( 'title' ) ) === '' ) &&
    48                         ( trim( $i[0]->getAttribute( 'aria-label' ) ) === '' )
     47                        ( ) &&
     48                        ( )
    4949                    )
    5050                )
     
    5757    // check inputs.
    5858    foreach ( $inputs as $input ) {
    59         if ( $input->getAttribute( 'value' ) === '' ) {
     59        if ( ) {
    6060            $errors[] = $input->outertext;
    6161        }
  • accessibility-checker/tags/1.11.1/includes/rules/empty_heading_tag.php

    r3080015 r3081378  
    2727            $heading_code = $heading->outertext;
    2828
    29             if ( ( str_ireplace( [ ' ', '&nbsp;', '-', '_' ], '', htmlentities( trim( $heading->plaintext ) ) ) === '' || str_ireplace( [ ' ', '&nbsp;', '-', '_' ], '', trim( $heading->plaintext ) ) === '' ) && ! preg_match( '#<img(\S|\s)*alt=(\'|\")(\w|\s)(\w|\s|\p{P}|\(|\)|\p{Sm}|~|`|’|\^|\$)+(\'|\")#', $heading_code ) ) {
     29            if ( (
     30                    empty( str_ireplace( [ ' ', '&nbsp;', '-', '_' ], '', htmlentities( trim( $heading->plaintext ) ) ) ) ||
     31                    empty( str_ireplace( [ ' ', '&nbsp;', '-', '_' ], '', trim( $heading->plaintext ) ) )
     32                ) &&
     33                    empty( $heading->getAttribute( 'aria-label' ) ) &&
     34                    ! preg_match(
     35                        '#<img(\S|\s)*alt=(\'|\")(\w|\s)(\w|\s|\p{P}|\(|\)|\p{Sm}|~|`|’|\^|\$)+(\'|\")#',
     36                        $heading_code
     37                    )
     38            ) {
    3039
    3140                $errors[] = $heading_code;
  • accessibility-checker/tags/1.11.1/includes/rules/empty_link.php

    r3080015 r3081378  
    2323
    2424        if (
    25             str_ireplace( [ ' ', '&nbsp;', '-', '_' ], '', trim( $link->plaintext ) ) === ''
     25            str_ireplace( [ ' ', '&nbsp;', '-', '_' ], '', trim( $link->plaintext ) ) === ''
    2626            && $link->hasAttribute( 'href' )
    27             && $link->getAttribute( 'aria-label' ) === ''
    28             && $link->getAttribute( 'title' ) === ''
     27            &&
     28            &&
    2929        ) {
    3030
     
    4646
    4747                $image = $link->find( 'img' );
    48                 if ( ! $error && isset( $input[0] ) && trim( $image[0]->getAttribute( 'alt' ) ) === '' ) {
     48                if ( ! $error && isset( $input[0] ) && ) {
    4949
    5050                    // The first image inside the link does not have an alt.
     
    5454
    5555                $input = $link->find( 'input' );
    56                 if ( ! $error && isset( $input[0] ) && trim( $image[0]->getAttribute( 'value' ) ) === '' ) {
     56                if ( ! $error && isset( $input[0] ) && ) {
    5757
    5858                    // The first input inside the link does not have a value.
     
    6363                $i = $link->find( 'i' );
    6464                if ( ! $error && isset( $input[0] ) &&
    65                 trim( $i[0]->getAttribute( 'title' ) ) === '' &&
    66                 trim( $i[0]->getAttribute( 'aria-label' ) ) === ''
     65                &&
     66               
    6767                ) {
    6868
  • accessibility-checker/tags/1.11.1/includes/rules/iframe_missing_title.php

    r3080015 r3081378  
    2020
    2121    foreach ( $iframe_tags as $iframe ) {
    22         if ( isset( $iframe ) && $iframe->getAttribute( 'title' ) === '' && $iframe->getAttribute( 'aria-label' ) === '' ) {
     22        if ( isset( $iframe ) && ) {
    2323
    2424            $iframecode = htmlspecialchars( $iframe->outertext );
  • accessibility-checker/tags/1.11.1/includes/rules/img_alt_empty.php

    r3080015 r3081378  
    2828                        && 'img' === $element->tag
    2929                        && $element->hasAttribute( 'alt' )
    30                         && $element->getAttribute( 'alt' ) === ''
     30                        && $element->getAttribute( 'alt' ) === ''
    3131                        && $element->getAttribute( 'role' ) !== 'presentation'
    3232                    ) || (
     
    3434                        && $element->hasAttribute( 'alt' )
    3535                        && $element->getAttribute( 'type' ) === 'image'
    36                         && $element->getAttribute( 'alt' ) === ''
     36                        && $element->getAttribute( 'alt' ) === ''
    3737                    )
    3838                ) {
  • accessibility-checker/tags/1.11.1/includes/rules/img_linked_alt_empty.php

    r3080015 r3081378  
    2222
    2323        // anchors with aria-label or title or valid node text.
    24         if ( $a->getAttribute( 'aria-label' ) === '' && $a->getAttribute( 'title' ) === '' && strlen( $a->plaintext ) <= 5 ) {
     24        if ( && strlen( $a->plaintext ) <= 5 ) {
    2525
    2626            $images = $a->find( 'img' );
     
    2929                if ( isset( $image )
    3030                    && $image->hasAttribute( 'alt' )
    31                     && $image->getAttribute( 'alt' ) === ''
     31                    && $image->getAttribute( 'alt' ) === ''
    3232                    && $image->getAttribute( 'role' ) !== 'presentation' ) {
    3333
  • accessibility-checker/tags/1.11.1/includes/rules/img_linked_alt_missing.php

    r3080015 r3081378  
    2222
    2323        // anchors with aria-label or title or valid node text.
    24         if ( $a->getAttribute( 'aria-label' ) === '' && $a->getAttribute( 'title' ) === '' && strlen( $a->plaintext ) <= 5 ) {
     24        if ( && strlen( $a->plaintext ) <= 5 ) {
    2525
    2626            $images = $a->find( 'img' );
  • accessibility-checker/tags/1.11.1/includes/rules/long_description_invalid.php

    r3080015 r3081378  
    2929                $valid_url  = filter_var( $longdesc, FILTER_VALIDATE_URL );
    3030
    31                 if ( $image->getAttribute( 'longdesc' ) === ''
     31                if ( $image->getAttribute( 'longdesc' ) === ''
    3232                || ! $valid_url
    3333                || ! $file_parts['extension']
  • accessibility-checker/tags/1.11.1/includes/rules/missing_title.php

    r3080015 r3081378  
    2323    }
    2424    if ( ( ! isset( $title ) || '' === $title->innertext || '-' === $title->innertext )
    25         && ( ! isset( $meta_title ) || ( $meta_title->hasAttribute( 'content' ) && ( $meta_title->getAttribute( 'content' ) === '' || strlen( $meta_title->getAttribute( 'content' ) ) <= 1 ) ) )
     25        && ( ! isset( $meta_title ) || ( $meta_title->hasAttribute( 'content' ) && ( $meta_title->getAttribute( 'content' ) === '' || strlen( $meta_title->getAttribute( 'content' ) ) <= 1 ) ) )
    2626    ) {
    2727        return [ "Missing title tag or meta title tag - Post ID: $post->ID" ];
  • accessibility-checker/tags/1.11.1/readme.txt

    r3080015 r3081378  
    44Requires at least: 6.2
    55Tested up to: 6.5.2
    6 Stable tag: 1.11.0
     6Stable tag: 1.11.
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    171171
    172172== Changelog ==
     173
     174
     175
     176
     177
    173178
    174179= 1.11.0 =
  • accessibility-checker/tags/1.11.1/vendor/autoload.php

    r3080015 r3081378  
    33// autoload.php @generated by Composer
    44
     5
     6
     7
     8
     9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
    523require_once __DIR__ . '/composer/autoload_real.php';
    624
    7 return ComposerAutoloaderInit9acc56c47309c47dd8658e5013071dd3::getLoader();
     25return ComposerAutoloaderInit::getLoader();
  • accessibility-checker/tags/1.11.1/vendor/composer/ClassLoader.php

    r3055547 r3081378  
    4343class ClassLoader
    4444{
     45
     46
     47
    4548    /** @var ?string */
    4649    private $vendorDir;
     
    107110    {
    108111        $this->vendorDir = $vendorDir;
     112
    109113    }
    110114
     
    150154    /**
    151155     * @return string[] Array of classname => path
    152      * @psalm-var array<string, string>
     156     * @psalm- array<string, string>
    153157     */
    154158    public function getClassMap()
     
    426430    {
    427431        if ($file = $this->findFile($class)) {
    428             includeFile($file);
     432            $includeFile = self::$includeFile;
     433            $includeFile($file);
    429434
    430435            return true;
     
    556561        return false;
    557562    }
     563
     564
     565
     566
     567
     568
     569
     570
     571
     572
     573
     574
     575
     576
     577
     578
     579
     580
     581
     582
     583
     584
    558585}
    559 
    560 /**
    561  * Scope isolated include.
    562  *
    563  * Prevents access to $this/self from included files.
    564  *
    565  * @param  string $file
    566  * @return void
    567  * @private
    568  */
    569 function includeFile($file)
    570 {
    571     include $file;
    572 }
  • accessibility-checker/tags/1.11.1/vendor/composer/InstalledVersions.php

    r3055547 r3081378  
    2222 *
    2323 * To require its presence, you can require `composer-runtime-api ^2.0`
     24
     25
    2426 */
    2527class InstalledVersions
     
    2729    /**
    2830     * @var mixed[]|null
    29      * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
     31     * @psalm-var array{root: array{name: string, }>}|array{}|null
    3032     */
    3133    private static $installed;
     
    3840    /**
    3941     * @var array[]
    40      * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     42     * @psalm-var array<string, array{root: array{name: string, }>}>
    4143     */
    4244    private static $installedByVendor = array();
     
    9799        foreach (self::getInstalled() as $installed) {
    98100            if (isset($installed['versions'][$packageName])) {
    99                 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     101                return $includeDevRequirements || ;
    100102            }
    101103        }
     
    118120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    119121    {
    120         $constraint = $parser->parseConstraints($constraint);
     122        $constraint = $parser->parseConstraints($constraint);
    121123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    122124
     
    242244    /**
    243245     * @return array
    244      * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
     246     * @psalm-return array{name: string, }
    245247     */
    246248    public static function getRootPackage()
     
    256258     * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
    257259     * @return array[]
    258      * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}
     260     * @psalm-return array{root: array{name: string, }>}
    259261     */
    260262    public static function getRawData()
     
    279281     *
    280282     * @return array[]
    281      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     283     * @psalm-return list<array{root: array{name: string, }>}>
    282284     */
    283285    public static function getAllRawData()
     
    302304     * @return void
    303305     *
    304      * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data
     306     * @psalm-param array{root: array{name: string, }>} $data
    305307     */
    306308    public static function reload($data)
     
    312314    /**
    313315     * @return array[]
    314      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     316     * @psalm-return list<array{root: array{name: string, }>}>
    315317     */
    316318    private static function getInstalled()
     
    327329                    $installed[] = self::$installedByVendor[$vendorDir];
    328330                } elseif (is_file($vendorDir.'/composer/installed.php')) {
    329                     $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
     331                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     332                    $required = require $vendorDir.'/composer/installed.php';
     333                    $installed[] = self::$installedByVendor[$vendorDir] = $required;
    330334                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    331335                        self::$installed = $installed[count($installed) - 1];
     
    339343            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    340344            if (substr(__DIR__, -8, 1) !== 'C') {
    341                 self::$installed = require __DIR__ . '/installed.php';
     345                /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     346                $required = require __DIR__ . '/installed.php';
     347                self::$installed = $required;
    342348            } else {
    343349                self::$installed = array();
    344350            }
    345351        }
    346         $installed[] = self::$installed;
     352
     353        if (self::$installed !== array()) {
     354            $installed[] = self::$installed;
     355        }
    347356
    348357        return $installed;
  • accessibility-checker/tags/1.11.1/vendor/composer/autoload_classmap.php

    r3080015 r3081378  
    33// autoload_classmap.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname();
    66$baseDir = dirname($vendorDir);
    77
  • accessibility-checker/tags/1.11.1/vendor/composer/autoload_namespaces.php

    r3055547 r3081378  
    33// autoload_namespaces.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname();
    66$baseDir = dirname($vendorDir);
    77
  • accessibility-checker/tags/1.11.1/vendor/composer/autoload_psr4.php

    r3055547 r3081378  
    33// autoload_psr4.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname();
    66$baseDir = dirname($vendorDir);
    77
  • accessibility-checker/tags/1.11.1/vendor/composer/autoload_real.php

    r3080015 r3081378  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit9acc56c47309c47dd8658e5013071dd3
     5class ComposerAutoloaderInit
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit9acc56c47309c47dd8658e5013071dd3', 'loadClassLoader'), true, true);
    28         self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit9acc56c47309c47dd8658e5013071dd3', 'loadClassLoader'));
     27        spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true);
     28        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname());
     29        spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader'));
    3030
    31         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    32         if ($useStaticLoader) {
    33             require __DIR__ . '/autoload_static.php';
    34 
    35             call_user_func(\Composer\Autoload\ComposerStaticInit9acc56c47309c47dd8658e5013071dd3::getInitializer($loader));
    36         } else {
    37             $map = require __DIR__ . '/autoload_namespaces.php';
    38             foreach ($map as $namespace => $path) {
    39                 $loader->set($namespace, $path);
    40             }
    41 
    42             $map = require __DIR__ . '/autoload_psr4.php';
    43             foreach ($map as $namespace => $path) {
    44                 $loader->setPsr4($namespace, $path);
    45             }
    46 
    47             $classMap = require __DIR__ . '/autoload_classmap.php';
    48             if ($classMap) {
    49                 $loader->addClassMap($classMap);
    50             }
    51         }
     31        require __DIR__ . '/autoload_static.php';
     32        call_user_func(\Composer\Autoload\ComposerStaticInitc9186e7167f863d6ad94be6f51ec2ba7::getInitializer($loader));
    5233
    5334        $loader->register(true);
  • accessibility-checker/tags/1.11.1/vendor/composer/autoload_static.php

    r3080015 r3081378  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit9acc56c47309c47dd8658e5013071dd3
     7class ComposerStaticInit
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    179179    {
    180180        return \Closure::bind(function () use ($loader) {
    181             $loader->prefixLengthsPsr4 = ComposerStaticInit9acc56c47309c47dd8658e5013071dd3::$prefixLengthsPsr4;
    182             $loader->prefixDirsPsr4 = ComposerStaticInit9acc56c47309c47dd8658e5013071dd3::$prefixDirsPsr4;
    183             $loader->prefixesPsr0 = ComposerStaticInit9acc56c47309c47dd8658e5013071dd3::$prefixesPsr0;
    184             $loader->classMap = ComposerStaticInit9acc56c47309c47dd8658e5013071dd3::$classMap;
     181            $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4;
     182            $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4;
     183            $loader->prefixesPsr0 = ComposerStaticInit::$prefixesPsr0;
     184            $loader->classMap = ComposerStaticInit::$classMap;
    185185
    186186        }, null, ClassLoader::class);
  • accessibility-checker/tags/1.11.1/vendor/composer/installed.php

    r3080015 r3081378  
    11<?php return array(
    22    'root' => array(
     3
    34        'pretty_version' => 'dev-main',
    45        'version' => 'dev-main',
     6
    57        'type' => 'library',
    68        'install_path' => __DIR__ . '/../../',
    79        'aliases' => array(),
    8         'reference' => '4554894378eb4b4b0364ecd2689a676ad3d8e45b',
    9         'name' => 'equalizedigital/accesibility-checker',
    1010        'dev' => false,
    1111    ),
     
    1414            'pretty_version' => 'v1.12.0',
    1515            'version' => '1.12.0.0',
     16
    1617            'type' => 'composer-plugin',
    1718            'install_path' => __DIR__ . '/./installers',
    1819            'aliases' => array(),
    19             'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19',
    2020            'dev_requirement' => false,
    2121        ),
     
    2323            'pretty_version' => 'dev-master',
    2424            'version' => 'dev-master',
     25
    2526            'type' => 'library',
    2627            'install_path' => __DIR__ . '/../davechild/textstatistics',
     
    2829                0 => '1.0.x-dev',
    2930            ),
    30             'reference' => '2276191cfe12eb083b2604faf1038dcb31820e8a',
    3131            'dev_requirement' => false,
    3232        ),
     
    3434            'pretty_version' => 'dev-main',
    3535            'version' => 'dev-main',
     36
    3637            'type' => 'library',
    3738            'install_path' => __DIR__ . '/../../',
    3839            'aliases' => array(),
    39             'reference' => '4554894378eb4b4b0364ecd2689a676ad3d8e45b',
    4040            'dev_requirement' => false,
    4141        ),
  • accessibility-checker/trunk/accessibility-checker.php

    r3080015 r3081378  
    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.0
     13 * Version:           1.11.
    1414 * Author:            Equalize Digital
    1515 * Author URI:        https://equalizedigital.com
     
    4242// Current plugin version.
    4343if ( ! defined( 'EDAC_VERSION' ) ) {
    44     define( 'EDAC_VERSION', '1.11.0' );
     44    define( 'EDAC_VERSION', '1.11.' );
    4545}
    4646
  • accessibility-checker/trunk/admin/class-admin-notices.php

    r3080015 r3081378  
    267267
    268268        // first time if notice has never been shown wait 14 days.
    269         if ( false === $edac_review_notice_reminder && false === $edac_review_notice ) {
     269        if ( false === $edac_review_notice_reminder && ) {
    270270            // if option isn't set and plugin has been active for more than 14 days show notice. This is for current users.
    271271            if ( edac_days_active() > 14 ) {
  • accessibility-checker/trunk/includes/rules/empty_button.php

    r3080015 r3081378  
    2828    foreach ( $buttons as $button ) {
    2929        if (
    30             str_ireplace( [ ' ', '&nbsp;', '-', '_' ], '', trim( $button->plaintext ) ) === ''
    31             && $button->getAttribute( 'aria-label' ) === ''
    32             && $button->getAttribute( 'title' ) === ''
     30           
     31            &&
     32            &&
    3333        ) {
    3434
     
    4040            if (
    4141                '' !== $error_code
    42                 && ( ! isset( $image[0] ) || trim( $image[0]->getAttribute( 'alt' ) ) === '' )
    43                 && ( ! isset( $input[0] ) || trim( $input[0]->getAttribute( 'value' ) ) === '' )
     42                && ( ! isset( $image[0] ) || )
     43                && ( ! isset( $input[0] ) || )
    4444                && (
    4545                    ! isset( $i[0] ) ||
    4646                    (
    47                         ( trim( $i[0]->getAttribute( 'title' ) ) === '' ) &&
    48                         ( trim( $i[0]->getAttribute( 'aria-label' ) ) === '' )
     47                        ( ) &&
     48                        ( )
    4949                    )
    5050                )
     
    5757    // check inputs.
    5858    foreach ( $inputs as $input ) {
    59         if ( $input->getAttribute( 'value' ) === '' ) {
     59        if ( ) {
    6060            $errors[] = $input->outertext;
    6161        }
  • accessibility-checker/trunk/includes/rules/empty_heading_tag.php

    r3080015 r3081378  
    2727            $heading_code = $heading->outertext;
    2828
    29             if ( ( str_ireplace( [ ' ', '&nbsp;', '-', '_' ], '', htmlentities( trim( $heading->plaintext ) ) ) === '' || str_ireplace( [ ' ', '&nbsp;', '-', '_' ], '', trim( $heading->plaintext ) ) === '' ) && ! preg_match( '#<img(\S|\s)*alt=(\'|\")(\w|\s)(\w|\s|\p{P}|\(|\)|\p{Sm}|~|`|’|\^|\$)+(\'|\")#', $heading_code ) ) {
     29            if ( (
     30                    empty( str_ireplace( [ ' ', '&nbsp;', '-', '_' ], '', htmlentities( trim( $heading->plaintext ) ) ) ) ||
     31                    empty( str_ireplace( [ ' ', '&nbsp;', '-', '_' ], '', trim( $heading->plaintext ) ) )
     32                ) &&
     33                    empty( $heading->getAttribute( 'aria-label' ) ) &&
     34                    ! preg_match(
     35                        '#<img(\S|\s)*alt=(\'|\")(\w|\s)(\w|\s|\p{P}|\(|\)|\p{Sm}|~|`|’|\^|\$)+(\'|\")#',
     36                        $heading_code
     37                    )
     38            ) {
    3039
    3140                $errors[] = $heading_code;
  • accessibility-checker/trunk/includes/rules/empty_link.php

    r3080015 r3081378  
    2323
    2424        if (
    25             str_ireplace( [ ' ', '&nbsp;', '-', '_' ], '', trim( $link->plaintext ) ) === ''
     25            str_ireplace( [ ' ', '&nbsp;', '-', '_' ], '', trim( $link->plaintext ) ) === ''
    2626            && $link->hasAttribute( 'href' )
    27             && $link->getAttribute( 'aria-label' ) === ''
    28             && $link->getAttribute( 'title' ) === ''
     27            &&
     28            &&
    2929        ) {
    3030
     
    4646
    4747                $image = $link->find( 'img' );
    48                 if ( ! $error && isset( $input[0] ) && trim( $image[0]->getAttribute( 'alt' ) ) === '' ) {
     48                if ( ! $error && isset( $input[0] ) && ) {
    4949
    5050                    // The first image inside the link does not have an alt.
     
    5454
    5555                $input = $link->find( 'input' );
    56                 if ( ! $error && isset( $input[0] ) && trim( $image[0]->getAttribute( 'value' ) ) === '' ) {
     56                if ( ! $error && isset( $input[0] ) && ) {
    5757
    5858                    // The first input inside the link does not have a value.
     
    6363                $i = $link->find( 'i' );
    6464                if ( ! $error && isset( $input[0] ) &&
    65                 trim( $i[0]->getAttribute( 'title' ) ) === '' &&
    66                 trim( $i[0]->getAttribute( 'aria-label' ) ) === ''
     65                &&
     66               
    6767                ) {
    6868
  • accessibility-checker/trunk/includes/rules/iframe_missing_title.php

    r3080015 r3081378  
    2020
    2121    foreach ( $iframe_tags as $iframe ) {
    22         if ( isset( $iframe ) && $iframe->getAttribute( 'title' ) === '' && $iframe->getAttribute( 'aria-label' ) === '' ) {
     22        if ( isset( $iframe ) && ) {
    2323
    2424            $iframecode = htmlspecialchars( $iframe->outertext );
  • accessibility-checker/trunk/includes/rules/img_alt_empty.php

    r3080015 r3081378  
    2828                        && 'img' === $element->tag
    2929                        && $element->hasAttribute( 'alt' )
    30                         && $element->getAttribute( 'alt' ) === ''
     30                        && $element->getAttribute( 'alt' ) === ''
    3131                        && $element->getAttribute( 'role' ) !== 'presentation'
    3232                    ) || (
     
    3434                        && $element->hasAttribute( 'alt' )
    3535                        && $element->getAttribute( 'type' ) === 'image'
    36                         && $element->getAttribute( 'alt' ) === ''
     36                        && $element->getAttribute( 'alt' ) === ''
    3737                    )
    3838                ) {
  • accessibility-checker/trunk/includes/rules/img_linked_alt_empty.php

    r3080015 r3081378  
    2222
    2323        // anchors with aria-label or title or valid node text.
    24         if ( $a->getAttribute( 'aria-label' ) === '' && $a->getAttribute( 'title' ) === '' && strlen( $a->plaintext ) <= 5 ) {
     24        if ( && strlen( $a->plaintext ) <= 5 ) {
    2525
    2626            $images = $a->find( 'img' );
     
    2929                if ( isset( $image )
    3030                    && $image->hasAttribute( 'alt' )
    31                     && $image->getAttribute( 'alt' ) === ''
     31                    && $image->getAttribute( 'alt' ) === ''
    3232                    && $image->getAttribute( 'role' ) !== 'presentation' ) {
    3333
  • accessibility-checker/trunk/includes/rules/img_linked_alt_missing.php

    r3080015 r3081378  
    2222
    2323        // anchors with aria-label or title or valid node text.
    24         if ( $a->getAttribute( 'aria-label' ) === '' && $a->getAttribute( 'title' ) === '' && strlen( $a->plaintext ) <= 5 ) {
     24        if ( && strlen( $a->plaintext ) <= 5 ) {
    2525
    2626            $images = $a->find( 'img' );
  • accessibility-checker/trunk/includes/rules/long_description_invalid.php

    r3080015 r3081378  
    2929                $valid_url  = filter_var( $longdesc, FILTER_VALIDATE_URL );
    3030
    31                 if ( $image->getAttribute( 'longdesc' ) === ''
     31                if ( $image->getAttribute( 'longdesc' ) === ''
    3232                || ! $valid_url
    3333                || ! $file_parts['extension']
  • accessibility-checker/trunk/includes/rules/missing_title.php

    r3080015 r3081378  
    2323    }
    2424    if ( ( ! isset( $title ) || '' === $title->innertext || '-' === $title->innertext )
    25         && ( ! isset( $meta_title ) || ( $meta_title->hasAttribute( 'content' ) && ( $meta_title->getAttribute( 'content' ) === '' || strlen( $meta_title->getAttribute( 'content' ) ) <= 1 ) ) )
     25        && ( ! isset( $meta_title ) || ( $meta_title->hasAttribute( 'content' ) && ( $meta_title->getAttribute( 'content' ) === '' || strlen( $meta_title->getAttribute( 'content' ) ) <= 1 ) ) )
    2626    ) {
    2727        return [ "Missing title tag or meta title tag - Post ID: $post->ID" ];
  • accessibility-checker/trunk/readme.txt

    r3080015 r3081378  
    44Requires at least: 6.2
    55Tested up to: 6.5.2
    6 Stable tag: 1.11.0
     6Stable tag: 1.11.
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    171171
    172172== Changelog ==
     173
     174
     175
     176
     177
    173178
    174179= 1.11.0 =
  • accessibility-checker/trunk/vendor/autoload.php

    r3080015 r3081378  
    33// autoload.php @generated by Composer
    44
     5
     6
     7
     8
     9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
    523require_once __DIR__ . '/composer/autoload_real.php';
    624
    7 return ComposerAutoloaderInit9acc56c47309c47dd8658e5013071dd3::getLoader();
     25return ComposerAutoloaderInit::getLoader();
  • accessibility-checker/trunk/vendor/composer/ClassLoader.php

    r3055547 r3081378  
    4343class ClassLoader
    4444{
     45
     46
     47
    4548    /** @var ?string */
    4649    private $vendorDir;
     
    107110    {
    108111        $this->vendorDir = $vendorDir;
     112
    109113    }
    110114
     
    150154    /**
    151155     * @return string[] Array of classname => path
    152      * @psalm-var array<string, string>
     156     * @psalm- array<string, string>
    153157     */
    154158    public function getClassMap()
     
    426430    {
    427431        if ($file = $this->findFile($class)) {
    428             includeFile($file);
     432            $includeFile = self::$includeFile;
     433            $includeFile($file);
    429434
    430435            return true;
     
    556561        return false;
    557562    }
     563
     564
     565
     566
     567
     568
     569
     570
     571
     572
     573
     574
     575
     576
     577
     578
     579
     580
     581
     582
     583
     584
    558585}
    559 
    560 /**
    561  * Scope isolated include.
    562  *
    563  * Prevents access to $this/self from included files.
    564  *
    565  * @param  string $file
    566  * @return void
    567  * @private
    568  */
    569 function includeFile($file)
    570 {
    571     include $file;
    572 }
  • accessibility-checker/trunk/vendor/composer/InstalledVersions.php

    r3055547 r3081378  
    2222 *
    2323 * To require its presence, you can require `composer-runtime-api ^2.0`
     24
     25
    2426 */
    2527class InstalledVersions
     
    2729    /**
    2830     * @var mixed[]|null
    29      * @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
     31     * @psalm-var array{root: array{name: string, }>}|array{}|null
    3032     */
    3133    private static $installed;
     
    3840    /**
    3941     * @var array[]
    40      * @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     42     * @psalm-var array<string, array{root: array{name: string, }>}>
    4143     */
    4244    private static $installedByVendor = array();
     
    9799        foreach (self::getInstalled() as $installed) {
    98100            if (isset($installed['versions'][$packageName])) {
    99                 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     101                return $includeDevRequirements || ;
    100102            }
    101103        }
     
    118120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    119121    {
    120         $constraint = $parser->parseConstraints($constraint);
     122        $constraint = $parser->parseConstraints($constraint);
    121123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    122124
     
    242244    /**
    243245     * @return array
    244      * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
     246     * @psalm-return array{name: string, }
    245247     */
    246248    public static function getRootPackage()
     
    256258     * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
    257259     * @return array[]
    258      * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}
     260     * @psalm-return array{root: array{name: string, }>}
    259261     */
    260262    public static function getRawData()
     
    279281     *
    280282     * @return array[]
    281      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     283     * @psalm-return list<array{root: array{name: string, }>}>
    282284     */
    283285    public static function getAllRawData()
     
    302304     * @return void
    303305     *
    304      * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data
     306     * @psalm-param array{root: array{name: string, }>} $data
    305307     */
    306308    public static function reload($data)
     
    312314    /**
    313315     * @return array[]
    314      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
     316     * @psalm-return list<array{root: array{name: string, }>}>
    315317     */
    316318    private static function getInstalled()
     
    327329                    $installed[] = self::$installedByVendor[$vendorDir];
    328330                } elseif (is_file($vendorDir.'/composer/installed.php')) {
    329                     $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
     331                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     332                    $required = require $vendorDir.'/composer/installed.php';
     333                    $installed[] = self::$installedByVendor[$vendorDir] = $required;
    330334                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    331335                        self::$installed = $installed[count($installed) - 1];
     
    339343            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    340344            if (substr(__DIR__, -8, 1) !== 'C') {
    341                 self::$installed = require __DIR__ . '/installed.php';
     345                /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     346                $required = require __DIR__ . '/installed.php';
     347                self::$installed = $required;
    342348            } else {
    343349                self::$installed = array();
    344350            }
    345351        }
    346         $installed[] = self::$installed;
     352
     353        if (self::$installed !== array()) {
     354            $installed[] = self::$installed;
     355        }
    347356
    348357        return $installed;
  • accessibility-checker/trunk/vendor/composer/autoload_classmap.php

    r3080015 r3081378  
    33// autoload_classmap.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname();
    66$baseDir = dirname($vendorDir);
    77
  • accessibility-checker/trunk/vendor/composer/autoload_namespaces.php

    r3055547 r3081378  
    33// autoload_namespaces.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname();
    66$baseDir = dirname($vendorDir);
    77
  • accessibility-checker/trunk/vendor/composer/autoload_psr4.php

    r3055547 r3081378  
    33// autoload_psr4.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname();
    66$baseDir = dirname($vendorDir);
    77
  • accessibility-checker/trunk/vendor/composer/autoload_real.php

    r3080015 r3081378  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit9acc56c47309c47dd8658e5013071dd3
     5class ComposerAutoloaderInit
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit9acc56c47309c47dd8658e5013071dd3', 'loadClassLoader'), true, true);
    28         self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit9acc56c47309c47dd8658e5013071dd3', 'loadClassLoader'));
     27        spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true);
     28        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname());
     29        spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader'));
    3030
    31         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    32         if ($useStaticLoader) {
    33             require __DIR__ . '/autoload_static.php';
    34 
    35             call_user_func(\Composer\Autoload\ComposerStaticInit9acc56c47309c47dd8658e5013071dd3::getInitializer($loader));
    36         } else {
    37             $map = require __DIR__ . '/autoload_namespaces.php';
    38             foreach ($map as $namespace => $path) {
    39                 $loader->set($namespace, $path);
    40             }
    41 
    42             $map = require __DIR__ . '/autoload_psr4.php';
    43             foreach ($map as $namespace => $path) {
    44                 $loader->setPsr4($namespace, $path);
    45             }
    46 
    47             $classMap = require __DIR__ . '/autoload_classmap.php';
    48             if ($classMap) {
    49                 $loader->addClassMap($classMap);
    50             }
    51         }
     31        require __DIR__ . '/autoload_static.php';
     32        call_user_func(\Composer\Autoload\ComposerStaticInitc9186e7167f863d6ad94be6f51ec2ba7::getInitializer($loader));
    5233
    5334        $loader->register(true);
  • accessibility-checker/trunk/vendor/composer/autoload_static.php

    r3080015 r3081378  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit9acc56c47309c47dd8658e5013071dd3
     7class ComposerStaticInit
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    179179    {
    180180        return \Closure::bind(function () use ($loader) {
    181             $loader->prefixLengthsPsr4 = ComposerStaticInit9acc56c47309c47dd8658e5013071dd3::$prefixLengthsPsr4;
    182             $loader->prefixDirsPsr4 = ComposerStaticInit9acc56c47309c47dd8658e5013071dd3::$prefixDirsPsr4;
    183             $loader->prefixesPsr0 = ComposerStaticInit9acc56c47309c47dd8658e5013071dd3::$prefixesPsr0;
    184             $loader->classMap = ComposerStaticInit9acc56c47309c47dd8658e5013071dd3::$classMap;
     181            $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4;
     182            $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4;
     183            $loader->prefixesPsr0 = ComposerStaticInit::$prefixesPsr0;
     184            $loader->classMap = ComposerStaticInit::$classMap;
    185185
    186186        }, null, ClassLoader::class);
  • accessibility-checker/trunk/vendor/composer/installed.php

    r3080015 r3081378  
    11<?php return array(
    22    'root' => array(
     3
    34        'pretty_version' => 'dev-main',
    45        'version' => 'dev-main',
     6
    57        'type' => 'library',
    68        'install_path' => __DIR__ . '/../../',
    79        'aliases' => array(),
    8         'reference' => '4554894378eb4b4b0364ecd2689a676ad3d8e45b',
    9         'name' => 'equalizedigital/accesibility-checker',
    1010        'dev' => false,
    1111    ),
     
    1414            'pretty_version' => 'v1.12.0',
    1515            'version' => '1.12.0.0',
     16
    1617            'type' => 'composer-plugin',
    1718            'install_path' => __DIR__ . '/./installers',
    1819            'aliases' => array(),
    19             'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19',
    2020            'dev_requirement' => false,
    2121        ),
     
    2323            'pretty_version' => 'dev-master',
    2424            'version' => 'dev-master',
     25
    2526            'type' => 'library',
    2627            'install_path' => __DIR__ . '/../davechild/textstatistics',
     
    2829                0 => '1.0.x-dev',
    2930            ),
    30             'reference' => '2276191cfe12eb083b2604faf1038dcb31820e8a',
    3131            'dev_requirement' => false,
    3232        ),
     
    3434            'pretty_version' => 'dev-main',
    3535            'version' => 'dev-main',
     36
    3637            'type' => 'library',
    3738            'install_path' => __DIR__ . '/../../',
    3839            'aliases' => array(),
    39             'reference' => '4554894378eb4b4b0364ecd2689a676ad3d8e45b',
    4040            'dev_requirement' => false,
    4141        ),
Note: See TracChangeset for help on using the changeset viewer.