PluginProbe
ActivityPub / 8.0.2
ActivityPub v8.0.2
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | integration/class-jetpack.php +0 -19 8.3.08.0.2 View file →
@@ -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.