diff --git a/projects/packages/videopress/changelog/fix-videopress-stdclass-property-warning b/projects/packages/videopress/changelog/fix-videopress-stdclass-property-warning new file mode 100644 index 0000000000000..6afc7943a915b --- /dev/null +++ b/projects/packages/videopress/changelog/fix-videopress-stdclass-property-warning @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +VideoPress: Fix warnnings for videos with no prior metadata. diff --git a/projects/packages/videopress/src/utility-functions.php b/projects/packages/videopress/src/utility-functions.php index ffe2148d48a9c..9bc69d25d2631 100644 --- a/projects/packages/videopress/src/utility-functions.php +++ b/projects/packages/videopress/src/utility-functions.php @@ -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;