Changeset 3416129
- Timestamp:
- 12/10/2025 08:54:54 AM (4 months ago)
- Location:
- player-leaderboard/trunk
- Files:
-
- 6 edited
-
admin/class-player-leaderboard-admin.php (modified) (7 diffs)
-
admin/partials/player-leaderboard-competition.php (modified) (1 diff)
-
includes/class-player-leaderboard.php (modified) (3 diffs)
-
player-leaderboard.php (modified) (3 diffs)
-
public/class-player-leaderboard-public.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
player-leaderboard/trunk/admin/class-player-leaderboard-admin.php
r2695478 r3416129 125 125 126 126 add_submenu_page( 127 null,127 $this->plugin_name, 128 128 'New Competition', 129 129 __('New Competition', 'player-leaderboard'), … … 134 134 135 135 add_submenu_page( 136 null,136 $this->plugin_name, 137 137 __('Player Leaderboard', 'player-leaderboard'), 138 138 __('Players', 'player-leaderboard'), … … 143 143 144 144 add_submenu_page( 145 null,145 $this->plugin_name, 146 146 'New Player', 147 147 __('New Player', 'player-leaderboard'), … … 152 152 153 153 add_submenu_page( 154 null,154 $this->plugin_name, 155 155 __('Player Leaderboard', 'player-leaderboard'), 156 156 __('Results', 'player-leaderboard'), … … 161 161 162 162 add_submenu_page( 163 null,163 $this->plugin_name, 164 164 'New Result', 165 165 __('New Result', 'player-leaderboard'), … … 170 170 171 171 add_submenu_page( 172 null,172 $this->plugin_name, 173 173 'New Results', 174 174 __('New Results', 'player-leaderboard'), … … 177 177 array($this, 'load_admin_results_multiple') 178 178 ); 179 } 180 181 /** 182 * Filter sub menu entries 183 * 184 * @since 1.0.3 185 * 186 */ 187 public function filter_submenu_file($submenu_file) { 188 189 remove_submenu_page($this->plugin_name, $this->plugin_name . ''); 190 remove_submenu_page($this->plugin_name, $this->plugin_name . '-competition'); 191 remove_submenu_page($this->plugin_name, $this->plugin_name . '-players'); 192 remove_submenu_page($this->plugin_name, $this->plugin_name . '-player'); 193 remove_submenu_page($this->plugin_name, $this->plugin_name . '-results'); 194 remove_submenu_page($this->plugin_name, $this->plugin_name . '-result'); 195 remove_submenu_page($this->plugin_name, $this->plugin_name . '-results-multiple'); 196 197 return null; 179 198 } 180 199 -
player-leaderboard/trunk/admin/partials/player-leaderboard-competition.php
r2696034 r3416129 180 180 <?php } else { ?> 181 181 <?php switch ($competition->type) { 182 case 1: $type = __('Female', 'player-leaderboard'); break; 183 case 2: $type = __('Male', 'player-leaderboard'); break; 182 case 1: $type = __('Single', 'player-leaderboard'); break; 183 case 2: $type = __('Double', 'player-leaderboard'); break; 184 case 3: $type = __('Team', 'player-leaderboard'); break; 184 185 default: $type = __('Unknown', 'player-leaderboard'); break; 185 186 } ?> -
player-leaderboard/trunk/includes/class-player-leaderboard.php
r2695478 r3416129 92 92 * @since 1.0.0 93 93 */ 94 public function load_plugin_textdomain() 94 public function load_plugin_textdomain() 95 95 { 96 96 load_plugin_textdomain( … … 112 112 private function set_locale() 113 113 { 114 add_action(' plugins_loaded', array($this, 'load_plugin_textdomain'));114 add_action('init', array($this, 'load_plugin_textdomain')); 115 115 } 116 116 … … 137 137 138 138 add_action('plugins_loaded', array($plugin_admin, 'db_check')); 139 140 add_filter('submenu_file', array($plugin_admin, 'filter_submenu_file')); 139 141 } 140 142 -
player-leaderboard/trunk/player-leaderboard.php
r2696034 r3416129 17 17 * Plugin URI: https://www.software-kunze.de/plugin-player-leaderboard/ 18 18 * Description: Management of a player leaderboard 19 * Version: 1.0. 219 * Version: 1.0.3 20 20 * Author: Alexander Kunze Software Consulting 21 21 * Author URI: https://www.software-kunze.de … … 37 37 * Rename this for your plugin and update it as you release new versions. 38 38 */ 39 define('Player_Leaderboard', '1.0. 2');39 define('Player_Leaderboard', '1.0.3'); 40 40 41 41 global $player_leaderboard_db_version; … … 301 301 function run_player_leaderboard() 302 302 { 303 $description = __('Management of a player leaderboard', 'player-leaderboard');304 303 $plugin = new Player_Leaderboard(); 305 304 $plugin->run(); -
player-leaderboard/trunk/public/class-player-leaderboard-public.php
r2469356 r3416129 1404 1404 * 1405 1405 * @since 1.0.0 1406 * 1407 * 1.0.3 - Fix of CVE-2025-12824 - No direct use of attribute 'mode' / sanitize_file_name 1406 1408 */ 1407 1409 public function public_shortcode($atts, $content = null) … … 1417 1419 1418 1420 ob_start(); 1419 include 'partials/player-leaderboard-public-'. $mode . '.php'; 1421 switch ($mode) 1422 { 1423 case 'ranking': 1424 include 'partials/' . sanitize_file_name('player-leaderboard-public-ranking.php'); 1425 break; 1426 case 'matrix': 1427 include 'partials/' . sanitize_file_name('player-leaderboard-public-matrix.php'); 1428 break; 1429 case 'standing': 1430 default: 1431 include 'partials/' . sanitize_file_name('player-leaderboard-public-standing.php'); 1432 break; 1433 } 1420 1434 return ob_get_clean(); 1421 1435 } -
player-leaderboard/trunk/readme.txt
r2696034 r3416129 4 4 Tags: Player Leaderboard, Ranking, Badminton, Squash, Tennis, Table Tennis, Rangliste 5 5 Requires at least: 4.9 6 Tested up to: 5.9.27 Stable tag: 1.0. 26 Tested up to: 6.9 7 Stable tag: 1.0.3 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later … … 44 44 == Changelog == 45 45 46 = 1.0.3 = 47 * Fix of CVE-2025-12824 48 * Tested with Version 6.9 49 50 = 1.0.2 = 51 Bugfix: Correct usage of button styles 52 53 = 1.0.1 = 54 * Backend Redesign 55 46 56 = 1.0.0 = 47 57 * Implemented basic features 48 58 * Bugfix: Correct plugin title and icon 49 59 50 = 1.0.1 =51 * Backend Redesign52 53 = 1.0.2 =54 Bugfix: Correct usage of button styles55 56 60 == Upgrade Notice == 57 61
Note: See TracChangeset
for help on using the changeset viewer.