Plugin Directory

Changeset 3386642


Ignore:
Timestamp:
10/29/2025 07:46:36 PM (5 months ago)
Author:
apos37
Message:

1.0.3

  • Tweak: Console log full path of images without alt text to find hidden elements
Location:
wcag-admin-accessibility-tools
Files:
35 added
3 edited

Legend:

Unmodified
Added
Removed
  • wcag-admin-accessibility-tools/trunk/inc/js/admin-bar.js

    r3374548 r3386642  
    7474        if ( state ) {
    7575            switch ( tool ) {
    76                 case 'alt-text': checkAltBubbles(); break;
     76                case 'alt-text': checkAltBubbles( false, true ); break;
    7777                case 'contrast': checkColorContrast(); break;
    7878                case 'vague-link-text': checkVagueLinkTexts(); break;
     
    9595     * Image Alt Text
    9696     */
    97     function checkAltBubbles( countOnly = false ) {
     97    function checkAltBubbles( countOnly = false, logInConsole = false ) {
    9898        let count = 0;
    9999
     
    107107                }
    108108                count++;
    109                 console.log( 'Missing alt text for image:', img[0] );
     109               
     110                if ( logInConsole ) {
     111                    console.log( 'Missing alt text for image:', img[0] );
     112                    const path = img.parents().map( function() {
     113                        const el = $( this );
     114                        let sel = el.prop( 'tagName' ).toLowerCase();
     115                        if ( el.attr( 'id' ) ) sel += '#' + el.attr( 'id' );
     116                        else if ( el.attr( 'class' ) ) sel += '.' + el.attr( 'class' ).split( /\s+/ )[0];
     117                        return sel;
     118                    } ).get().reverse().join( ' > ' );
     119                    console.log( 'Path:', path );
     120                }
    110121            }
    111122        } );
  • wcag-admin-accessibility-tools/trunk/readme.txt

    r3374548 r3386642  
    55Tested up to: 6.8
    66Requires PHP: 7.4
    7 Stable tag: 1.0.2
     7Stable tag: 1.0.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.txt
     
    5555
    5656== Changelog ==
     57= 1.0.3 =
     58* Tweak: Console log full path of images without alt text to find hidden elements
     59
    5760= 1.0.2 =
    5861* Fixes: Prepare for deployment on WP.org repo
  • wcag-admin-accessibility-tools/trunk/wcag-admin-accessibility-tools.php

    r3374548 r3386642  
    44 * Plugin URI:          https://pluginrx.com/plugin/wcag-admin-accessibility-tools/
    55 * Description:         Admin-side accessibility enhancements and tools to assist with WCAG compliance.
    6  * Version:             1.0.2
     6 * Version:             1.0.3
    77 * Requires at least:   5.9
    88 * Tested up to:        6.8
Note: See TracChangeset for help on using the changeset viewer.