Skip to content

Commit

Permalink
don’t convert contributor_ids array to an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Schreiber committed Apr 26, 2018
1 parent 279af0f commit 6bba9ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liveblog.php
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ public static function ajax_crud_entry() {
$args['content'] = isset( $_POST['content'] ) ? sanitize_text_field( wp_unslash( $_POST['content'] ) ) : ''; // input var ok
$args['entry_id'] = isset( $_POST['entry_id'] ) ? intval( $_POST['entry_id'] ) : 0; // input var ok
$args['author_id'] = isset( $_POST['author_id'] ) ? intval( $_POST['author_id'] ) : false; // input var ok
$args['contributor_ids'] = isset( $_POST['contributor_ids'] ) ? intval( $_POST['contributor_ids'] ) : false; // input var ok
$args['contributor_ids'] = isset( $_POST['contributor_ids'] ) ? sanitize_text_field( wp_unslash( $_POST['contributor_ids'] ) ) : false; // input var ok

$entry = self::do_crud_entry( $crud_action, $args );

Expand Down

0 comments on commit 6bba9ca

Please sign in to comment.