← All changes
|
integrations/shortlinkspro/includes/requirements.php
+5
-0
7.9.6
→
8.0.5
View file →
| @@ -77,8 +77,13 @@ | ||
| 77 | 77 | * @param $requirement |
| 78 | 78 | */ |
| 79 | 79 | function gamipress_shortlinkspro_ajax_update_requirement( $requirement_id, $requirement ) { |
| 80 | 80 | |
| 81 | + $requirement = wp_parse_args( $requirement, array( | |
| 82 | + 'shortlinkspro_category' => '', | |
| 83 | + 'shortlinkspro_tag' => '', | |
| 84 | + ) ); | |
| 85 | + | |
| 81 | 86 | if( isset( $requirement['trigger_type'] ) |
| 82 | 87 | && ( $requirement['trigger_type'] === 'gamipress_shortlinkspro_click_specific_category' ) ) { |
| 83 | 88 | |
| 84 | 89 | // Category |