Changeset 14490
- Timestamp:
- 07/24/2025 07:15:24 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-github-invite/admin-post.php
r12859 r14490 16 16 check_admin_referer( 'github_invite' ); 17 17 18 $input = wp_unslash( $_POST['invite'] );19 $team_ids = (array) wp_unslash( $_POST['team_id'] );18 $input = wp_unslash( $_POST['invite'] ?? '' ); 19 $team_ids = (array) wp_unslash( $_POST['team_id'] ?? [] ); 20 20 $team_ids = array_intersect( $team_ids, get_allowed_teams() ); 21 21 $team_ids = array_map( 'intval', $team_ids ); … … 119 119 } 120 120 121 $id = (int) wp_unslash( $_GET['invite'] );121 $id = (int) wp_unslash( $_GET['invite'] ?? '' ); 122 122 123 123 check_admin_referer( 'github_cancel_invite_' . $id ); … … 151 151 check_admin_referer( 'github_invite_settings' ); 152 152 153 $team_ids = wp_unslash( $_POST['team_id'] );153 $team_ids = wp_unslash( $_POST['team_id'] ?? [] ); 154 154 $team_ids = array_map( 'intval', $team_ids ); 155 155
Note: See TracChangeset
for help on using the changeset viewer.