Skip to content

Commit

Permalink
Added a default setting for the privacy_setting property to avoid war…
Browse files Browse the repository at this point in the history
…nings.
  • Loading branch information
zinigor committed Feb 7, 2025
1 parent c99d1d8 commit 3313349
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/packages/videopress/src/utility-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ function video_get_info_by_blogpostid( $blog_id, $post_id ) {
$video_info->description = $post->post_content;
$video_info->title = $post->post_title;
$video_info->caption = $post->post_excerpt;
$video_info->privacy_setting = VIDEOPRESS_PRIVACY::SITE_DEFAULT;

if ( is_wp_error( $post ) ) {
return $video_info;
Expand Down

0 comments on commit 3313349

Please sign in to comment.