Skip to content

Commit

Permalink
[not verified] Modules Admin: Allow VideoPress module to be managed f…
Browse files Browse the repository at this point in the history
…or any plan (#21200)

* Allow VideoPress module to be activated for any plan including free.

* Adding changelog entry.

Co-authored-by: Samiff <[email protected]>
  • Loading branch information
2 people authored and retrofox committed Oct 1, 2021
1 parent 04d23a5 commit fbb2922
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: bugfix

VideoPress can now be managed on the Modules page for any plan type.
6 changes: 2 additions & 4 deletions projects/plugins/jetpack/class.jetpack-modules-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,17 @@ function js_templates() {
if ( item === undefined ) return; #>
<tr class="jetpack-module <# if ( ++i % 2 ) { #> alternate<# } #><# if ( item.activated ) { #> active<# } #><# if ( ! item.available ) { #> unavailable<# } #>" id="{{{ item.module }}}">
<th scope="row" class="check-column">
<# if ( 'videopress' !== item.module ) { #>
<input type="checkbox" name="modules[]" value="{{{ item.module }}}" />
<# } #>
</th>
<td class='name column-name'>
<span class='info'><a href="{{{item.learn_more_button}}}" target="blank">{{{ item.name }}}</a></span>
<div class="row-actions">
<# if ( item.configurable ) { #>
<span class='configure'>{{{ item.configurable }}}</span>
<# } #>
<# if ( item.activated && 'vaultpress' !== item.module && item.available && 'videopress' !== item.module ) { #>
<# if ( item.activated && 'vaultpress' !== item.module && item.available ) { #>
<span class='delete'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=deactivate&#038;module={{{ item.module }}}&#038;_wpnonce={{{ item.deactivate_nonce }}}"><?php _e( 'Deactivate', 'jetpack' ); ?></a></span>
<# } else if ( item.available && 'videopress' !== item.module ) { #>
<# } else if ( item.available ) { #>
<span class='activate'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=activate&#038;module={{{ item.module }}}&#038;_wpnonce={{{ item.activate_nonce }}}"><?php _e( 'Activate', 'jetpack' ); ?></a></span>
<# } #>
<# if ( ! item.available ) { #>
Expand Down
2 changes: 2 additions & 0 deletions projects/plugins/jetpack/class.jetpack-plan.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class Jetpack_Plan {
'send-a-message',
'whatsapp-button',
'social-previews',
'videopress',

'core/video',
'core/cover',
Expand All @@ -64,6 +65,7 @@ class Jetpack_Plan {
'akismet',
'recurring-payments',
'premium-content/container',
'videopress',
),
),
'premium' => array(
Expand Down
2 changes: 0 additions & 2 deletions projects/plugins/jetpack/modules/videopress.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
* Module Name: VideoPress
* Module Description: Save on hosting storage and bandwidth costs by streaming fast, ad-free video from our global network.
* First Introduced: 2.5
* Free: false
* Requires Connection: Yes
* Sort Order: 27
* Module Tags: Photos and Videos
* Feature: Writing
* Additional Search Queries: video, videos, videopress, video gallery, video player, videoplayer, mobile video, vimeo, youtube, html5 video, stream
* Plans: business, premium, security, complete
*/

include_once dirname( __FILE__ ) . '/videopress/shortcode.php';
Expand Down

0 comments on commit fbb2922

Please sign in to comment.