Changeset 3486125
- Timestamp:
- 03/19/2026 04:29:00 AM (2 weeks ago)
- Location:
- blocks-for-discogs-users/trunk
- Files:
-
- 3 edited
-
blocks-for-discogs-users.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
src/logging.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blocks-for-discogs-users/trunk/blocks-for-discogs-users.php
r3440795 r3486125 6 6 Author: Greyforest 7 7 Author URI: https://www.greyforest.digital 8 Version: 1.0. 08 Version: 1.0.1 9 9 Requires at least: 6.0 10 10 Requires PHP: 8.0 … … 21 21 if (!defined('ABSPATH')) { return; } 22 22 23 define('GF_BLOCKS_FOR_DISCOGS_USERS_PLUGIN_VERSION','1.0. 0');23 define('GF_BLOCKS_FOR_DISCOGS_USERS_PLUGIN_VERSION','1.0.1'); 24 24 define('GF_BLOCKS_FOR_DISCOGS_USERS_PLUGIN_URL',substr( plugin_dir_url( __FILE__ ), 0, -1 ) ); 25 25 define('GF_BLOCKS_FOR_DISCOGS_USERS_PLUGIN_PATH',dirname( __FILE__ )); -
blocks-for-discogs-users/trunk/readme.txt
r3440795 r3486125 8 8 Requires at least: 6.0 9 9 Tested up to: 6.9 10 Stable tag: 1.0. 010 Stable tag: 1.0.1 11 11 Requires PHP: 8.0 12 12 License: GPLv2 or later … … 124 124 == Changelog == 125 125 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 126 129 = 1.0.0 -> January 16th, 2026 = 127 130 * Initial commit to repository. -
blocks-for-discogs-users/trunk/src/logging.php
r3440795 r3486125 112 112 public function handle_clear_log() { 113 113 114 if ( ! current_user_can( 'manage_options' ) ) {115 wp_die( 'Unauthorized user' );116 }117 118 114 if ( 119 115 isset( $_POST['gf_clear_logs'] ) && … … 121 117 check_admin_referer( 'gf_clear_logs_action', 'gf_clear_logs_nonce' ) 122 118 ) { 119 if ( ! current_user_can( 'manage_options' ) ) { 120 wp_die( 'Unauthorized user' ); 121 } 123 122 $clear = $this->clear_log(); 124 123 if ( $clear ) {
Note: See TracChangeset
for help on using the changeset viewer.