Changeset 3486130
- Timestamp:
- 03/19/2026 04:32:25 AM (2 weeks ago)
- Location:
- blocks-for-discogs-sellers/trunk
- Files:
-
- 3 edited
-
blocks-for-discogs-sellers.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
src/logging.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
blocks-for-discogs-sellers/trunk/blocks-for-discogs-sellers.php
r3461652 r3486130 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_SELLERS_PLUGIN_VERSION','1.0. 0');23 define('GF_BLOCKS_FOR_DISCOGS_SELLERS_PLUGIN_VERSION','1.0.1'); 24 24 define('GF_BLOCKS_FOR_DISCOGS_SELLERS_PLUGIN_URL',substr( plugin_dir_url( __FILE__ ), 0, -1 ) ); 25 25 define('GF_BLOCKS_FOR_DISCOGS_SELLERS_PLUGIN_PATH',dirname( __FILE__ )); -
blocks-for-discogs-sellers/trunk/readme.txt
r3461652 r3486130 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 … … 108 108 == Changelog == 109 109 110 = 1.0.1 -> March 19, 2026 = 111 * Fixed admin-ajax.php unauthorized user bug caused by current_user_can() function placement in logging admin_init() action 112 110 113 = 1.0.0 -> February 15, 2026 = 111 114 * Initial commit to repository. -
blocks-for-discogs-sellers/trunk/src/logging.php
r3461652 r3486130 112 112 public function handle_clear_log() { 113 113 114 if ( ! current_user_can( 'manage_options' ) ) {115 wp_die( 'Unauthorized user' );116 }117 114 118 115 if ( … … 121 118 check_admin_referer( 'gf_clear_logs_action', 'gf_clear_logs_nonce' ) 122 119 ) { 120 if ( ! current_user_can( 'manage_options' ) ) { 121 wp_die( 'Unauthorized user' ); 122 } 123 123 $clear = $this->clear_log(); 124 124 if ( $clear ) {
Note: See TracChangeset
for help on using the changeset viewer.