From 84be43cb1288a72ba15a122da861e29208f789d5 Mon Sep 17 00:00:00 2001 From: John Caruso Date: Mon, 29 Aug 2022 16:46:31 -0400 Subject: [PATCH] Update/videopress match feature check criteria (#25691) * match the feature check criteria for showing upsells with the Performance -> Media components * changelog * only use videopress for feature check on upsells, not video-hosting since that is what the upload endpoint uses to validate Co-authored-by: sdixon194 --- .../plugins/jetpack/_inc/client/at-a-glance/videopress.jsx | 3 ++- projects/plugins/jetpack/_inc/client/performance/media.jsx | 3 +-- .../changelog/update-videopress-match-feature-check-criteria | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 projects/plugins/jetpack/changelog/update-videopress-match-feature-check-criteria diff --git a/projects/plugins/jetpack/_inc/client/at-a-glance/videopress.jsx b/projects/plugins/jetpack/_inc/client/at-a-glance/videopress.jsx index 3607ec7326bde..031577f7ca2e6 100644 --- a/projects/plugins/jetpack/_inc/client/at-a-glance/videopress.jsx +++ b/projects/plugins/jetpack/_inc/client/at-a-glance/videopress.jsx @@ -173,7 +173,8 @@ export default connect( hasConnectedOwner: hasConnectedOwnerSelector( state ), hasVideoPressFeature: siteHasFeature( state, 'videopress-1tb-storage' ) || - siteHasFeature( state, 'videopress-unlimited-storage' ), + siteHasFeature( state, 'videopress-unlimited-storage' ) || + siteHasFeature( state, 'videopress' ), hasVideoPressUnlimitedStorage: siteHasFeature( state, 'videopress-unlimited-storage' ), isModuleAvailable: isModuleAvailable( state, 'videopress' ), isOffline: isOfflineMode( state ), diff --git a/projects/plugins/jetpack/_inc/client/performance/media.jsx b/projects/plugins/jetpack/_inc/client/performance/media.jsx index dc262299bd80c..7e708c48010a8 100644 --- a/projects/plugins/jetpack/_inc/client/performance/media.jsx +++ b/projects/plugins/jetpack/_inc/client/performance/media.jsx @@ -158,8 +158,7 @@ export default connect( state => { hasVideoPressFeature: siteHasFeature( state, 'videopress-1tb-storage' ) || siteHasFeature( state, 'videopress-unlimited-storage' ) || - siteHasFeature( state, 'videopress' ) || - siteHasFeature( state, 'video-hosting' ), + siteHasFeature( state, 'videopress' ), hasVideoPressUnlimitedStorage: siteHasFeature( state, 'videopress-unlimited-storage' ), hasConnectedOwner: hasConnectedOwnerSelector( state ), isOffline: isOfflineMode( state ), diff --git a/projects/plugins/jetpack/changelog/update-videopress-match-feature-check-criteria b/projects/plugins/jetpack/changelog/update-videopress-match-feature-check-criteria new file mode 100644 index 0000000000000..c8f332b6e7b20 --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-videopress-match-feature-check-criteria @@ -0,0 +1,4 @@ +Significance: patch +Type: bugfix + +Fixed the criteria for showing VideoPress upsells in the Jetpack Dashboard