Skip to content

Commit

Permalink
VideoPress: Fix VideoPress stdclass property warning. (#41639)
Browse files Browse the repository at this point in the history
* Added a default setting for the privacy_setting property to avoid warnings.

* Changelog.
  • Loading branch information
zinigor authored Feb 10, 2025
1 parent 32a7956 commit 4c0c7ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

VideoPress: Fix warnnings for videos with no prior metadata.
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 4c0c7ad

Please sign in to comment.