Changeset 3278222
- Timestamp:
- 04/21/2025 01:55:28 PM (10 months ago)
- Location:
- english-chess-data/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
public/class-echd-league-data-public-fixtures.php (modified) (3 diffs)
-
public/class-echd-league-data-public-table.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
english-chess-data/trunk/README.txt
r3189723 r3278222 5 5 Requires at least: 6.4.3 6 6 Tested up to: 6.7 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 57 57 * Adds Matchcards 58 58 * Allows filtering of Fixtures and Results by Event 59 = 1.0.2 = 60 * Fixes Bug where Matchcards are duplicated, if multiple shortcodes are used on the same page. 59 61 60 62 == Limitations / Improvements == -
english-chess-data/trunk/public/class-echd-league-data-public-fixtures.php
r3189723 r3278222 17 17 */ 18 18 private string $event_name; 19 20 private int $match_cards = 0; 19 21 20 22 /** … … 54 56 $this->event_name = esc_attr(sanitize_text_field($atts['event_name'])); 55 57 } 58 $match_title = get_query_var('match'); 59 $league_name = get_query_var('league'); 60 if ($match_title && $league_name) { 61 return ""; 62 } 56 63 return $this->get_fixture_list(false); 57 64 } … … 65 72 $league_name = get_query_var('league'); 66 73 if ($match_title && $league_name) { 74 if ($this->match_cards >= 1) { 75 return ""; // Avoid repeating matchcards if page is using multiple shortcodes 76 } 77 $this->match_cards++; 67 78 return $this->get_match($match_title, $league_name); 68 79 } -
english-chess-data/trunk/public/class-echd-league-data-public-table.php
r3189723 r3278222 50 50 public function display_league_table($atts): string 51 51 { 52 53 $match_title = get_query_var('match'); 54 $league_name = get_query_var('league'); 55 if ($match_title && $league_name) { 56 return ""; 57 } 52 58 53 59 if (is_array($atts) && array_key_exists('event_name', $atts)) {
Note: See TracChangeset
for help on using the changeset viewer.