| @@ -87,8 +87,9 @@ | ||
| 87 | 87 | \remove_filter( 'pre_wp_update_comment_count_now', array( Comment::class, 'pre_wp_update_comment_count_now' ), 5 ); |
| 88 | 88 | Migration::update_comment_counts( 2000 ); |
| 89 | 89 | |
| 90 | 90 | Remote_Posts::delete_all(); |
| 91 | + Tombstone::delete_all(); | |
| 91 | 92 | Client::delete_all(); |
| 92 | 93 | |
| 93 | 94 | Options::delete(); |
| 94 | 95 | } |
| @@ -129,9 +130,9 @@ | ||
| 129 | 130 | * |
| 130 | 131 | * @deprecated 7.5.0 Use {@see Router::add_rewrite_rules()}. |
| 131 | 132 | */ |
| 132 | 133 | public static function add_rewrite_rules() { |
| 133 | - _deprecated_function( __FUNCTION__, '7.5.0', '\Activitypub\Router::add_rewrite_rules()' ); | |
| 134 | + \_deprecated_function( __FUNCTION__, '7.5.0', '\Activitypub\Router::add_rewrite_rules()' ); | |
| 134 | 135 | |
| 135 | 136 | Router::add_rewrite_rules(); |
| 136 | 137 | } |
| 137 | 138 | |
| @@ -140,11 +141,11 @@ | ||
| 140 | 141 | */ |
| 141 | 142 | public static function theme_compat() { |
| 142 | 143 | // We assume that you want to use Post-Formats when enabling the setting. |
| 143 | 144 | if ( 'wordpress-post-format' === \get_option( 'activitypub_object_type', ACTIVITYPUB_DEFAULT_OBJECT_TYPE ) ) { |
| 144 | - if ( ! get_theme_support( 'post-formats' ) ) { | |
| 145 | + if ( ! \get_theme_support( 'post-formats' ) ) { | |
| 145 | 146 | // Add support for the Aside, Gallery Post Formats... |
| 146 | - add_theme_support( | |
| 147 | + \add_theme_support( | |
| 147 | 148 | 'post-formats', |
| 148 | 149 | array( |
| 149 | 150 | 'gallery', |
| 150 | 151 | 'status', |
| @@ -228,9 +229,9 @@ | ||
| 228 | 229 | 'description' => 'The user description.', |
| 229 | 230 | 'single' => true, |
| 230 | 231 | 'default' => '', |
| 231 | 232 | 'sanitize_callback' => static function ( $value ) { |
| 232 | - return wp_kses( $value, 'user_description' ); | |
| 233 | + return \wp_kses( $value, 'user_description' ); | |
| 233 | 234 | }, |
| 234 | 235 | ) |
| 235 | 236 | ); |
| 236 | 237 | |