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 | includes/class-activitypub.php +6 -44 9.3.08.0.2 View file →
@@ -8,10 +8,9 @@
8 8 namespace Activitypub;
9 9
10 10 use Activitypub\Collection\Followers;
11 11 use Activitypub\Collection\Following;
12 -use Activitypub\Collection\Remote_Posts;
13 -use Activitypub\OAuth\Client;
12 +use Activitypub\Collection\Posts;
14 13
15 14 /**
16 15 * ActivityPub Class.
17 16 *
@@ -86,11 +85,9 @@
86 85
87 86 \remove_filter( 'pre_wp_update_comment_count_now', array( Comment::class, 'pre_wp_update_comment_count_now' ), 5 );
88 87 Migration::update_comment_counts( 2000 );
89 88
90 - Remote_Posts::delete_all();
91 - Tombstone::delete_all();
92 - Client::delete_all();
89 + Posts::delete_all();
93 90
94 91 Options::delete();
95 92 }
96 93
@@ -130,9 +127,9 @@
130 127 *
131 128 * @deprecated 7.5.0 Use {@see Router::add_rewrite_rules()}.
132 129 */
133 130 public static function add_rewrite_rules() {
134 - \_deprecated_function( __FUNCTION__, '7.5.0', '\Activitypub\Router::add_rewrite_rules()' );
131 + _deprecated_function( __FUNCTION__, '7.5.0', '\Activitypub\Router::add_rewrite_rules()' );
135 132
136 133 Router::add_rewrite_rules();
137 134 }
138 135
@@ -141,11 +138,11 @@
141 138 */
142 139 public static function theme_compat() {
143 140 // We assume that you want to use Post-Formats when enabling the setting.
144 141 if ( 'wordpress-post-format' === \get_option( 'activitypub_object_type', ACTIVITYPUB_DEFAULT_OBJECT_TYPE ) ) {
145 - if ( ! \get_theme_support( 'post-formats' ) ) {
142 + if ( ! get_theme_support( 'post-formats' ) ) {
146 143 // Add support for the Aside, Gallery Post Formats...
147 - \add_theme_support(
144 + add_theme_support(
148 145 'post-formats',
149 146 array(
150 147 'gallery',
151 148 'status',
@@ -229,9 +226,9 @@
229 226 'description' => 'The user description.',
230 227 'single' => true,
231 228 'default' => '',
232 229 'sanitize_callback' => static function ( $value ) {
233 - return \wp_kses( $value, 'user_description' );
230 + return wp_kses( $value, 'user_description' );
234 231 },
235 232 )
236 233 );
237 234
@@ -293,43 +290,8 @@
293 290 'sanitize_callback' => 'absint',
294 291 )
295 292 );
296 293 \add_filter( 'get_user_option_activitypub_mailer_new_mention', array( self::class, 'user_options_default' ) );
297 -
298 - \register_meta(
299 - 'user',
300 - $blog_prefix . 'activitypub_mailer_new_reaction',
301 - array(
302 - 'type' => 'integer',
303 - 'description' => 'Send a notification when someone likes, reposts, or quotes this user\'s post.',
304 - 'single' => true,
305 - 'sanitize_callback' => 'absint',
306 - )
307 - );
308 - \add_filter( 'get_user_option_activitypub_mailer_new_reaction', array( self::class, 'user_options_default' ) );
309 -
310 - \register_meta(
311 - 'user',
312 - $blog_prefix . 'activitypub_mailer_annual_report',
313 - array(
314 - 'type' => 'integer',
315 - 'description' => 'Send the annual Fediverse Year in Review email.',
316 - 'single' => true,
317 - 'sanitize_callback' => 'absint',
318 - )
319 - );
320 - \add_filter( 'get_user_option_activitypub_mailer_annual_report', array( self::class, 'user_options_default' ) );
321 -
322 - \register_meta(
323 - 'user',
324 - $blog_prefix . 'activitypub_mailer_monthly_report',
325 - array(
326 - 'type' => 'integer',
327 - 'description' => 'Send a monthly Fediverse stats report email.',
328 - 'single' => true,
329 - 'sanitize_callback' => 'absint',
330 - )
331 - );
332 294
333 295 \register_meta(
334 296 'user',
335 297 'activitypub_show_welcome_tab',