@@ -30,7 +30,6 @@ public static function init() {
30
30
\add_action ( 'init ' , array ( self ::class, 'theme_compat ' ), 11 );
31
31
\add_action ( 'init ' , array ( self ::class, 'register_user_meta ' ), 11 );
32
32
\add_action ( 'init ' , array ( self ::class, 'register_post_types ' ), 11 );
33
- \add_action ( 'init ' , array ( self ::class, 'register_oembed_providers ' ), 11 );
34
33
35
34
\add_action ( 'rest_api_init ' , array ( self ::class, 'register_ap_actor_rest_field ' ) );
36
35
@@ -907,18 +906,6 @@ public static function default_post_metadata( $meta_value, $object_id, $meta_key
907
906
return $ meta_value ;
908
907
}
909
908
910
- /**
911
- * Register some Mastodon oEmbed providers.
912
- */
913
- public static function register_oembed_providers () {
914
- \wp_oembed_add_provider ( '#https?://mastodon\.social/(@.+)/([0-9]+)#i ' , 'https://mastodon.social/api/oembed ' , true );
915
- \wp_oembed_add_provider ( '#https?://mastodon\.online/(@.+)/([0-9]+)#i ' , 'https://mastodon.online/api/oembed ' , true );
916
- \wp_oembed_add_provider ( '#https?://mastodon\.cloud/(@.+)/([0-9]+)#i ' , 'https://mastodon.cloud/api/oembed ' , true );
917
- \wp_oembed_add_provider ( '#https?://mstdn\.social/(@.+)/([0-9]+)#i ' , 'https://mstdn.social/api/oembed ' , true );
918
- \wp_oembed_add_provider ( '#https?://mastodon\.world/(@.+)/([0-9]+)#i ' , 'https://mastodon.world/api/oembed ' , true );
919
- \wp_oembed_add_provider ( '#https?://mas\.to/(@.+)/([0-9]+)#i ' , 'https://mas.to/api/oembed ' , true );
920
- }
921
-
922
909
/**
923
910
* Register user meta.
924
911
*/
0 commit comments