Plugin Directory

Changeset 3486125


Ignore:
Timestamp:
03/19/2026 04:29:00 AM (2 weeks ago)
Author:
greyforestdigital
Message:

Update to version 1.0.1

Location:
blocks-for-discogs-users/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • blocks-for-discogs-users/trunk/blocks-for-discogs-users.php

    r3440795 r3486125  
    66Author: Greyforest
    77Author URI: https://www.greyforest.digital
    8 Version: 1.0.0
     8Version: 1.0.1
    99Requires at least: 6.0
    1010Requires PHP: 8.0
     
    2121if (!defined('ABSPATH')) { return; }
    2222
    23 define('GF_BLOCKS_FOR_DISCOGS_USERS_PLUGIN_VERSION','1.0.0');
     23define('GF_BLOCKS_FOR_DISCOGS_USERS_PLUGIN_VERSION','1.0.1');
    2424define('GF_BLOCKS_FOR_DISCOGS_USERS_PLUGIN_URL',substr( plugin_dir_url( __FILE__ ), 0, -1 ) );
    2525define('GF_BLOCKS_FOR_DISCOGS_USERS_PLUGIN_PATH',dirname( __FILE__ ));
  • blocks-for-discogs-users/trunk/readme.txt

    r3440795 r3486125  
    88Requires at least: 6.0
    99Tested up to: 6.9
    10 Stable tag: 1.0.0
     10Stable tag: 1.0.1
    1111Requires PHP: 8.0
    1212License: GPLv2 or later
     
    124124== Changelog ==
    125125
     126= 1.0.1 -> March 19, 2026 =
     127* Fixed admin-ajax.php unauthorized user bug caused by current_user_can() function placement in logging admin_init() action
     128
    126129= 1.0.0 -> January 16th, 2026 =
    127130* Initial commit to repository.
  • blocks-for-discogs-users/trunk/src/logging.php

    r3440795 r3486125  
    112112    public function handle_clear_log() {
    113113
    114         if ( ! current_user_can( 'manage_options' ) ) {
    115             wp_die( 'Unauthorized user' );
    116         }
    117 
    118114        if (
    119115            isset( $_POST['gf_clear_logs'] ) &&
     
    121117            check_admin_referer( 'gf_clear_logs_action', 'gf_clear_logs_nonce' )
    122118        ) {
     119            if ( ! current_user_can( 'manage_options' ) ) {
     120                wp_die( 'Unauthorized user' );
     121            }
    123122            $clear = $this->clear_log();
    124123            if ( $clear ) {
Note: See TracChangeset for help on using the changeset viewer.