Plugin Directory

Changeset 3113185

Timestamp:
07/05/2024 03:59:26 PM (5 weeks ago)
Author:
joedolson
Message:

Add 2.1.10, remove 2.1.8, change stable.

https://github.com/joedolson/wp-accessibility/releases/tag/v2.1.10

Location:
wp-accessibility
Files:
75 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • wp-accessibility/trunk/readme.txt

    r3087372 r3113185  
    44Tags: accessibility, wcag, a11y, section508, alt text
    55Requires at least: 4.9
    6 Tested up to: 6.5
     6Tested up to: 6.
    77Requires PHP: 7.0
    8 Stable tag: 2.1.9
     8Stable tag: 2.1.
    99Text Domain: wp-accessibility
    1010License: GPLv2 or later
     
    8282
    8383[Suggest a change!](https://github.com/joedolson/wp-accessibility/issues/)
     84
     85
     86
     87
     88
     89
     90
    8491
    8592= 2.1.9 =
  • wp-accessibility/trunk/toolbar/css/a11y-contrast.css

    r2832560 r3113185  
    442442    :not(:empty) var:after, :not(:empty) var:before, :not(:empty)
    443443    xmp:after, :not(:empty) xmp:before, :root:not(HTML), :root:not(HTML)
    444     :not(:empty) {
     444    :not(:empty) {
    445445        background: black !important;
    446446        background-color: black !important;
  • wp-accessibility/trunk/toolbar/css/a11y-fontsize.css

    r3087372 r3113185  
    11/* enqueue these as a separate stylesheet so they can be filtered */
    2 .fontsize, .fontsize h1, .fontsize h2, .fontsize h3, .fontsize h4, .fontsize h5, .fontsize h6, .fontsize p, .fontsize li:not(.a11y-toolbar-list-item), .fontsize label, .fontsize input, .fontsize select, .fontsize textarea, .fontsize legend, .fontsize code, .fontsize pre, .fontsize dd, .fontsize dt, .fontsize blockquote {
     2.fontsize p,
     3.fontsize div:not(div:has( p, h1, h2, h3, h4, h5, h6)),
     4.fontsize footer:not(footer:has( p, h1, h2, h3, h4, h5, h6)),
     5.fontsize li:not(.a11y-toolbar-list-item),
     6.fontsize label,
     7.fontsize input,
     8.fontsize select,
     9.fontsize textarea,
     10.fontsize legend,
     11.fontsize code,
     12.fontsize pre,
     13.fontsize dd,
     14.fontsize dt,
     15.fontsize blockquote {
    316    font-size: var(--wpa-font-size) !important;
    417    line-height: 1.6;
    518}
    619
    7 .fontsize h1, .fontsize h2, .fontsize h3, .fontsize h4, .fontsize h5, .fontsize h6 {
    8     font-size: var(--wpa-heading-size) !important;
     20.fontsize h1 {
     21    font-size: var(--wpa-h1-size) !important;
     22}
     23
     24.fontsize h2 {
     25    font-size: var(--wpa-h2-size) !important;
     26}
     27.fontsize h3 {
     28    font-size: var(--wpa-h3-size) !important;
     29}
     30.fontsize h6,
     31.fontsize h5,
     32.fontsize h4 {
     33    font-size: var(--wpa-h4-size) !important;
    934}
    1035
  • wp-accessibility/trunk/wp-accessibility-stats.php

    r3064027 r3113185  
    335335    $total = 0;
    336336    if ( 'event' === $type ) {
    337         // translators: date changed, time changed.
    338         $hc_text_enabled = __( 'High contrast enabled on %1$s at %2$s', 'wp-accessibility' );
    339         // translators: date changed, time changed.
    340         $lf_text_enabled = __( 'Large font size enabled on %1$s at %2$s', 'wp-accessibility' );
    341         // translators: date changed, time changed.
    342         $hc_text_disabled = __( 'High contrast disabled on %1$s at %2$s', 'wp-accessibility' );
    343         // translators: date changed, time changed.
    344         $lf_text_disabled = __( 'Large font size disabled on %1$s at %2$s', 'wp-accessibility' );
    345         $param            = ( property_exists( $data, 'contrast' ) ) ? 'contrast' : 'fontsize';
    346         if ( 'contrast' === $param ) {
    347             switch ( $data->contrast ) {
    348                 case 'enabled':
    349                     $text = $hc_text_enabled;
    350                     break;
    351                 case 'disabled':
    352                     $text = $hc_text_disabled;
    353             }
    354         } else {
    355             switch ( $data->fontsize ) {
    356                 case 'enabled':
    357                     $text = $lf_text_enabled;
    358                     break;
    359                 case 'disabled':
    360                     $text = $lf_text_disabled;
    361             }
    362         }
    363337        $date = gmdate( 'Y-m-d', $data->timestamp );
    364338        $time = gmdate( 'H:i', $data->timestamp );
     339
     340
     341
     342
     343
     344
     345
     346
     347
     348
     349
     350
     351
     352
     353
     354
     355
     356
     357
     358
     359
     360
     361
     362
     363
     364
     365
     366
     367
     368
     369
     370
     371
     372
    365373        if ( property_exists( $data, 'alttext' ) ) {
    366             $image_link = '<a href="' . esc_url( add_query_arg( 'item', $data->alttext, admin_url( 'upload.php' ) ) ) . '">' . esc_html( $data->alttext ) . '</a>';
     374            $alt_img    = preg_replace( '/[^0-9]/', '', $data->alttext );
     375            $image_link = '<a href="' . esc_url( get_edit_post_link( $alt_img ) ) . '">' . esc_html( $data->alttext ) . '</a>';
    367376            // translators: 1) image link. 2) date 3) time.
    368377            $text = sprintf( __( 'Alt text expanded on image %1$s on %2$s at %3$s', 'wp-accessibility' ), $image_link, $date, $time );
    369378        }
    370379        if ( property_exists( $data, 'longdesc' ) ) {
    371             $image_link = '<a href="' . esc_url( add_query_arg( 'item', $data->longdesc, admin_url( 'upload.php' ) ) ) . '">' . esc_html( $data->longdesc ) . '</a>';
     380            $ld_img     = preg_replace( '/[^0-9]/', '', $data->longdesc );
     381            $image_link = '<a href="' . esc_url( get_edit_post_link( $ld_img ) ) . '">' . esc_html( $data->longdesc ) . '</a>';
    372382            // translators: 1) image link. 2) date 3) time.
    373383            $text = sprintf( __( 'Long description expanded on image %1$s on %2$s at %3$s', 'wp-accessibility' ), $image_link, $date, $time );
    374384        }
    375         $line = '<li>' . sprintf( $text, $date, $time ) . '</li>';
     385        $line = '<li>' . . '</li>';
    376386        if ( 'all' === $limit ) {
    377387            $limit = count( $history ) + 1;
  • wp-accessibility/trunk/wp-accessibility-toolbar.php

    r3087372 r3113185  
    5555    }
    5656    $plugin_path = array(
    57         'path' => $plugin_path,
     57        'path' => ,
    5858    );
    5959    wp_localize_script( 'ui-a11y', 'wpa11y', $plugin_path );
     
    8989    wp_register_style( 'ui-fontsize.css', $fontsize, array(), $wpa_version );
    9090    if ( 'on' === get_option( 'wpa_alternate_fontsize' ) ) {
    91         $vars = 'html { --wpa-font-size: "200%"; }';
     91        $vars = 'html { --wpa-font-size: ; }';
    9292    } else {
    93         $vars = 'html { --wpa-font-size: "250%"; --wpa-heading-size : "150%"; --wpa-sub-list-size: "110%"; --wpa-sub-sub-list-size: "100%"; } ';
     93        $vars = 'html { --wpa-font-size: ; } ';
    9494    }
    9595    wp_add_inline_style( 'ui-fontsize.css', $vars );
  • wp-accessibility/trunk/wp-accessibility.php

    r3087372 r3113185  
    1818 * License:     GPL-2.0+
    1919 * License URI: http://www.gnu.org/license/gpl-2.0.txt
    20  * Version: 2.1.9
     20 * Version: 2.1.
    2121 */
    2222
     
    9595 */
    9696function wpa_install() {
    97     $wpa_version = '2.1.9';
     97    $wpa_version = '2.1.';
    9898    if ( 'true' !== get_option( 'wpa_installed' ) ) {
    9999        add_option( 'rta_from_tag_clouds', 'on' );
Note: See TracChangeset for help on using the changeset viewer.