Skip to content

Commit b86f32f

Browse files
fix: add PHPCS ignore for base64_encode usage
1 parent 8a90f73 commit b86f32f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

includes/Blocks/SharedBlock.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,12 +290,11 @@ private function get_rendered_block( int $site_id, int $post_id, string $block_i
290290

291291
// Prepare request arguments
292292
$request_args = [];
293-
294293
// Add authentication headers if in non-production environment and credentials are defined
295294
if ( defined( 'MULTISITE_BLOCKS_AUTH_USER' ) && defined( 'MULTISITE_BLOCKS_AUTH_PWD' ) && ! empty( MULTISITE_BLOCKS_AUTH_USER ) && ! empty( MULTISITE_BLOCKS_AUTH_PWD ) ) {
296295
$request_args = [
297296
'headers' => [
298-
'Authorization' => 'Basic ' . base64_encode( MULTISITE_BLOCKS_AUTH_USER . ':' . MULTISITE_BLOCKS_AUTH_PWD ),
297+
'Authorization' => 'Basic ' . base64_encode( MULTISITE_BLOCKS_AUTH_USER . ':' . MULTISITE_BLOCKS_AUTH_PWD ), // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode
299298
],
300299
];
301300
}

0 commit comments

Comments
 (0)