Skip to content

Commit

Permalink
Move stuff around
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Sep 28, 2023
1 parent aa23795 commit 72a88e9
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions security/class-private-sites.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ public function init() {

add_filter( 'jetpack_active_modules', array( $this, 'filter_jetpack_active_modules' ) );
add_filter( 'jetpack_get_available_modules', array( $this, 'filter_jetpack_get_available_modules' ) );
$this->force_blog_public_option();

// Force the blog_public option to be -1 and disable UI
add_filter( 'option_blog_public', array( $this, 'filter_restrict_blog_public' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'disable_blog_public_ui' ) );

$this->disable_core_feeds();
$this->block_unnecessary_access();
}
Expand All @@ -70,14 +74,6 @@ public function disable_core_feeds() {
add_action( 'do_feed_atom', array( $this, 'action_do_feed' ), -1 );
}

/**
* Force the blog_public option to be -1 and disable UI
*/
public function force_blog_public_option() {
add_filter( 'option_blog_public', array( $this, 'filter_restrict_blog_public' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'disable_blog_public_ui' ) );
}

/**
* Disable checkbox/radio UI in Reading Settings
*/
Expand Down

0 comments on commit 72a88e9

Please sign in to comment.