Plugin Directory

Changeset 3491383


Ignore:
Timestamp:
03/26/2026 02:43:15 AM (11 days ago)
Author:
joedolson
Message:

Remove 2.3.1, add 2.3.3, change stable.

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

Location:
wp-accessibility
Files:
58 added
1 deleted
3 edited

Legend:

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

    r3464593 r3491383  
    66Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 2.3.2
     8Stable tag: 2.3.3
    99Text Domain: wp-accessibility
    1010License: GPLv3
     
    8282
    8383[Suggest a change!](https://github.com/joedolson/wp-accessibility/issues/)
     84
     85= 2.3.3 =
     86
     87* Bug fix: Set a default option value for `wpa_track_stats` in option call, to fix issue caused by strict type checking.
     88* Bug fix: Prevent escaped strings in search output from bypassing empty search checks. Props @stevejonesdev.
    8489
    8590= 2.3.2 =
  • wp-accessibility/trunk/wp-accessibility-stats.php

    r3356370 r3491383  
    7575 */
    7676function wpa_add_stats( $stats, $title, $type = 'view', $post_ID = 0 ) {
    77     $admin_only = ( '' === get_option( 'wpa_track_stats' ) ) ? true : false;
     77    $admin_only = ( '' === get_option( 'wpa_track_stats', '' ) ) ? true : false;
    7878    if ( $admin_only && ! current_user_can( 'manage_options' ) ) {
    7979        return;
  • wp-accessibility/trunk/wp-accessibility.php

    r3464593 r3491383  
    1818 * License:     GPL-2.0+
    1919 * License URI: http://www.gnu.org/license/gpl-2.0.txt
    20  * Version: 2.3.2
     20 * Version: 2.3.3
    2121 */
    2222
     
    5353}
    5454
    55 define( 'WP_ACCESSIBILITY_VERSION', '2.3.2' );
     55define( 'WP_ACCESSIBILITY_VERSION', '2.3.3' );
    5656
    5757register_activation_hook( __FILE__, 'wpa_install' );
     
    466466     */
    467467    $errors_enabled = apply_filters( 'wpa_view_remediation_logs', current_user_can( 'manage_options' ) );
    468     $track          = ( '' === get_option( 'wpa_track_stats' ) ) ? current_user_can( 'manage_options' ) : true;
     468    $track          = ( '' === get_option( 'wpa_track_stats', '' ) ) ? current_user_can( 'manage_options' ) : true;
    469469    $track          = ( 'off' === get_option( 'wpa_track_stats' ) ) ? false : $track;
    470470    /**
     
    627627            $query->set( 'is_search', 1 );
    628628            add_action( 'template_include', 'wpa_search_error' );
     629            add_filter(
     630                'get_search_query',
     631                function ( $search_query ) {
     632                    if ( ' ' === $search_query ) {
     633                        return '';
     634                    }
     635                    return $search_query;
     636                }
     637            );
    629638        }
    630639    }
Note: See TracChangeset for help on using the changeset viewer.