Skip to content

Commit

Permalink
Update shortcodes.php (#1101)
Browse files Browse the repository at this point in the history
Add description for shortcode attribute.

See conversation: https://wordpress.slack.com/archives/C08M59V3P/p1697743274597019
  • Loading branch information
pkevan authored Oct 20, 2023
1 parent 059cfc3 commit d3c95a2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ public function sanitize_attendees_atts( $attr ) {
$attr['orderby'] = 'title';
}

// ID of ticket types, not invididual tickets. i.e. from wp-admin/edit.php?post_type=tix_ticket.
if ( $attr['tickets'] ) {
$attr['tickets'] = array_map( 'intval', explode( ',', $attr['tickets'] ) );
}
Expand Down

0 comments on commit d3c95a2

Please sign in to comment.