| @@ -232,9 +232,9 @@ | ||
| 232 | 232 | * @param string $type The block type (domain or keyword only). |
| 233 | 233 | * @param array $values Array of values to block. |
| 234 | 234 | */ |
| 235 | 235 | public static function add_site_blocks( $type, $values ) { |
| 236 | - if ( ! \in_array( $type, array( self::TYPE_DOMAIN, self::TYPE_KEYWORD ), true ) ) { | |
| 236 | + if ( ! in_array( $type, array( self::TYPE_DOMAIN, self::TYPE_KEYWORD ), true ) ) { | |
| 237 | 237 | return; |
| 238 | 238 | } |
| 239 | 239 | |
| 240 | 240 | if ( empty( $values ) ) { |
| @@ -251,9 +251,9 @@ | ||
| 251 | 251 | \do_action( 'activitypub_add_site_block', $value, $type ); |
| 252 | 252 | } |
| 253 | 253 | |
| 254 | 254 | $existing = \get_option( self::OPTION_KEYS[ $type ], array() ); |
| 255 | - \update_option( self::OPTION_KEYS[ $type ], \array_unique( \array_merge( $existing, $values ) ) ); | |
| 255 | + \update_option( self::OPTION_KEYS[ $type ], array_unique( array_merge( $existing, $values ) ) ); | |
| 256 | 256 | } |
| 257 | 257 | |
| 258 | 258 | /** |
| 259 | 259 | * Remove a site-wide block. |