| @@ -23,9 +23,8 @@ | ||
| 23 | 23 | * Initialize the class, registering WordPress hooks. |
| 24 | 24 | */ |
| 25 | 25 | public static function init() { |
| 26 | 26 | if ( ! \defined( 'IS_WPCOM' ) ) { |
| 27 | - \add_filter( 'jetpack_sync_options_whitelist', array( self::class, 'add_sync_options' ) ); | |
| 28 | 27 | \add_filter( 'jetpack_sync_post_meta_whitelist', array( self::class, 'add_sync_meta' ) ); |
| 29 | 28 | \add_filter( 'jetpack_sync_comment_meta_whitelist', array( self::class, 'add_sync_comment_meta' ) ); |
| 30 | 29 | \add_filter( 'jetpack_sync_whitelisted_comment_types', array( self::class, 'add_comment_types' ) ); |
| 31 | 30 | \add_filter( 'jetpack_json_api_comment_types', array( self::class, 'add_comment_types' ) ); |
| @@ -40,26 +39,8 @@ | ||
| 40 | 39 | \add_filter( 'pre_option_activitypub_following_ui', array( self::class, 'pre_option_activitypub_following_ui' ) ); |
| 41 | 40 | } |
| 42 | 41 | |
| 43 | 42 | \add_action( 'load-post-new.php', array( self::class, 'adapt_post_share' ) ); |
| 44 | - } | |
| 45 | - | |
| 46 | - /** | |
| 47 | - * Add ActivityPub options to the Jetpack sync allow list. | |
| 48 | - * | |
| 49 | - * @since 8.1.0 | |
| 50 | - * | |
| 51 | - * @param array $allow_list The Jetpack sync options allow list. | |
| 52 | - * | |
| 53 | - * @return array The allow list with ActivityPub options. | |
| 54 | - */ | |
| 55 | - public static function add_sync_options( $allow_list ) { | |
| 56 | - $allow_list[] = 'activitypub_blog_identifier'; | |
| 57 | - $allow_list[] = 'activitypub_blog_description'; | |
| 58 | - $allow_list[] = 'activitypub_header_image'; | |
| 59 | - $allow_list[] = 'activitypub_actor_mode'; | |
| 60 | - | |
| 61 | - return $allow_list; | |
| 62 | 43 | } |
| 63 | 44 | |
| 64 | 45 | /** |
| 65 | 46 | * Add ActivityPub meta keys to the Jetpack sync allow list. |