Skip to content

Commit

Permalink
Merge pull request #18 from apivideo/fix-tags
Browse files Browse the repository at this point in the history
Fix tags
  • Loading branch information
olivier-lando authored Oct 19, 2023
2 parents e500bc1 + e8b01c9 commit 3eb8fb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All changes to this project will be documented in this file.

## [1.0.7] - 2023-10-19
- Fix tags value
- Fix pagination

## [1.0.6] - 2023-06-06
- Fix api.video API client origin headers

2 changes: 2 additions & 0 deletions includes/av_page_library.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ function apivideowp_library() { ?>

$apivideowp_tags = explode(',', sanitize_text_field($_POST['input_tags']));
$apivideowp_tags = str_replace(' ', '', $apivideowp_tags);
$apivideowp_tags = array_diff($apivideowp_tags, array(""));


$client->videos()->update($_POST['videoid'], (new \ApiVideo\Client\Model\VideoUpdatePayload())
->setTitle(sanitize_text_field($_POST['input_title']))
Expand Down

0 comments on commit 3eb8fb6

Please sign in to comment.