From 331334950a85066aca891f2ec7815a38125769f6 Mon Sep 17 00:00:00 2001 From: Igor Zinovyev Date: Fri, 7 Feb 2025 20:13:22 +0300 Subject: [PATCH 1/2] Added a default setting for the privacy_setting property to avoid warnings. --- projects/packages/videopress/src/utility-functions.php | 1 + 1 file changed, 1 insertion(+) 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; From b22420e6dac3b0585fbffaa111bdbc6a9426ca6e Mon Sep 17 00:00:00 2001 From: Igor Zinovyev Date: Fri, 7 Feb 2025 20:14:38 +0300 Subject: [PATCH 2/2] Changelog. --- .../changelog/fix-videopress-stdclass-property-warning | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 projects/packages/videopress/changelog/fix-videopress-stdclass-property-warning 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.