Plugin Directory

Changeset 2907558


Ignore:
Timestamp:
05/03/2023 02:52:50 PM (3 years ago)
Author:
upress
Message:

update 1.4.1 to fix csrf issue

Location:
enable-accessibility
Files:
15 added
4 edited

Legend:

Unmodified
Added
Removed
  • enable-accessibility/trunk/enable-accessibility.php

    r2657027 r2907558  
    33 * Plugin Name: Enable Accessibility
    44 * Description: Enable Accessibility is a beautiful Advanced Toolbar that gives you great tools for fixing a common accessibility problems in WordPress themes..
    5  * Version:     1.4
     5 * Version:     1.4.1
    66 * Author:      uPress
    77 * Author URI: https://www.upress.co.il
     
    99 * License: GPLv2 or later
    1010 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
    11  * 
     11 *
    1212 * Text Domain: enable-accessibility
    1313 * Domain Path: /languages/
     
    5353            $this->plugin_slug = 'enable-accessibility';
    5454            load_plugin_textdomain( $this->plugin_slug, false, basename( dirname( __FILE__ ) ) . '/languages/' );
    55             $this->version = '1.4';
     55            $this->version = '1.4.1';
    5656
    5757            $this->kses_allowed_html = array(
     
    192192        public function accessibility_settings_page() {
    193193            if ( $_SERVER["REQUEST_METHOD"] == "POST" && isset( $_POST['action'] ) && $_POST['action'] == "save_accessibility_settings" ) {
     194                if ( ! wp_verify_nonce( (!empty($_POST['_wpnonce']) ? $_POST['_wpnonce'] : ''), 'save_accessibility_settings' ) ) {
     195                    wp_die( 'Not authorized' );
     196                }
     197
    194198                $this->_admin_update_accessibility_settings();
    195199            }
     
    210214            //      update_post_meta($pid, '_wp_attachment_image_alt', $palt);
    211215            if ( $_SERVER["REQUEST_METHOD"] == "POST" && isset( $_POST['action'] ) && $_POST['action'] == "save_accessibility_attachments_settings" ) {
     216                if ( ! wp_verify_nonce( (!empty($_POST['_wpnonce']) ? $_POST['_wpnonce'] : ''), 'save_accessibility_attachments_settings' ) ) {
     217                    wp_die( 'Not authorized' );
     218                }
     219
    212220                $this->_admin_update_attachments();
    213221            }
  • enable-accessibility/trunk/includes/accessibility-attachments-alt.php

    r1619407 r2907558  
    3636                $without_alt ++;
    3737            }
     38            if ( false === wp_get_attachment_image_src( $a->ID ) ) {
     39                $skip_post = true;
     40            }
    3841
    3942            if ( ! $skip_post ) {
     
    4144                    'post_id'    => (int)$a->ID,
    4245                    'meta_alt'   => sanitize_text_field( $alt_meta ),
    43                     'src'        => wp_get_attachment_image_src( $a->ID )[0],
     46                    'src'        => wp_get_attachment_image_src( $a->ID ) ? wp_get_attachment_image_src( $a->ID )[0] : '',
    4447                    'post_title' => sanitize_text_field( $a->post_title ),
    4548                    'view_url'   => get_permalink( $a->ID ),
     
    8285                </div>
    8386                <input type="hidden" name="action" value="save_accessibility_attachments_settings">
     87                <?php wp_nonce_field( 'save_accessibility_attachments_settings' ); ?>
    8488                <table class="wp-list-table widefat fixed striped oct-admin-table oct-filter-<?php echo esc_attr( $oct_filter ); ?>">
    8589                    <thead>
  • enable-accessibility/trunk/includes/accessibility-settings.php

    r1829232 r2907558  
    1616        <h2><?php esc_html_e( 'General Options', 'enable-accessibility' ) ?></h2>
    1717        <input type="hidden" name="action" value="save_accessibility_settings">
     18        <?php wp_nonce_field( 'save_accessibility_settings' ); ?>
    1819        <table class="form-table oc-accessibilty-style">
    1920            <tbody>
  • enable-accessibility/trunk/readme.txt

    r2657027 r2907558  
    55Tags: accessibity, user1, WAI, WCAG, wp accessibility, accessible, widget, plugin, wordpress, access, tool, toolbar, toolkit, wordpress accessible, wordpress accessibility, sidebar, css3, נגישות, הנגשת אתר
    66Requires at least: 3.0.1
    7 Tested up to: 5.9
     7Tested up to: 6.2
    88Stable tag: trunk
    99License: GPLv2 or later
     
    1919= Accessibility key features =
    2020* Font Size Control
    21 * Keyboard Navigation 
    22 * Contrast displays: High contrast / Black and White / Black and Yellow. 
     21* Keyboard Navigation
     22* Contrast displays: High contrast / Black and White / Black and Yellow.
    2323* Links Highlight
    2424* Stop Animations
     
    6262
    6363== Changelog ==
     64= 1.4.1 =
     65* Fix CSRF issue
     66* Bump tested up to version
     67
    6468= 1.4 =
    6569* Remove useless license check cron
Note: See TracChangeset for help on using the changeset viewer.