X Tutup
Skip to content

Commit 6c627db

Browse files
author
ethitter
committed
Remove Photon activation block introduced in r622206 since the public options isn't refreshed after Jetpack is activated.
1 parent 8f20043 commit 6c627db

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

modules/module-extras.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,4 @@ function jetpack_load_infinite_scroll_annotation() {
3838
function jetpack_can_activate_infinite_scroll( $can_activate ) {
3939
return (bool) current_theme_supports( 'infinite-scroll' );
4040
}
41-
add_filter( 'jetpack_can_activate_infinite-scroll', 'jetpack_can_activate_infinite_scroll' );
42-
43-
/**
44-
* Prevent Photon from being activated if the site isn't public.
45-
*
46-
* @param bool $can_activate
47-
* @filter jetpack_can_activate_photon
48-
* @return bool
49-
*/
50-
function jetpack_can_activate_photon( $can_activate ) {
51-
return Jetpack::get_option( 'public' );
52-
}
53-
add_filter( 'jetpack_can_activate_photon', 'jetpack_can_activate_photon' );
41+
add_filter( 'jetpack_can_activate_infinite-scroll', 'jetpack_can_activate_infinite_scroll' );

modules/module-info.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -708,10 +708,6 @@ function jetpack_photon_more_info() { ?>
708708
<h4><?php esc_html_e( 'Photon' , 'jetpack' ); ?></h4>
709709

710710
<p><?php esc_html_e( "Give your site a boost by loading images in post and posts' featured images from the WordPress.com content delivery network. We cache your images and serve them from our super-fast network, reducing the burden on your web host with the click of a button.", 'jetpack' ); ?></p>
711-
712-
<?php if ( ! Jetpack::get_option( 'public' ) ) : ?>
713-
<p><strong><?php esc_html_e( "At this time, Photon cannot be activated on this site because it isn't publicly accessible.", 'jetpack' ); ?></strong></p>
714-
<?php endif; ?>
715711
<?php
716712
}
717713
add_action( 'jetpack_module_more_info_photon', 'jetpack_photon_more_info' );

0 commit comments

Comments
 (0)
X Tutup