Skip to content

Commit

Permalink
Fixing for phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Jan 12, 2024
1 parent efb15cd commit 1251d49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/alley/wp/alleyvate/features/class-prevent-framing.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ public static function filter__wp_headers( $headers ): array {
*/
$headers['X-Frame-Options'] = apply_filters( 'alleyvate_prevent_framing_x_frame_options', 'SAMEORIGIN' );

if ( ! in_array( $headers['X-Frame-Options'], [ 'DENY', 'SAMEORIGIN' ], true ) && 0 !== strpos( $headers['X-Frame-Options'], 'ALLOW-FROM' ) ) {
if ( ! \in_array( $headers['X-Frame-Options'], [ 'DENY', 'SAMEORIGIN' ], true ) && 0 !== strpos( $headers['X-Frame-Options'], 'ALLOW-FROM' ) ) {
_doing_it_wrong(
__METHOD__,
\sprintf(
sprintf(
/* translators: %s: The value of the X-Frame-Options header. */
\esc_html__( 'Invalid value for %s. Must be DENY, SAMEORIGIN, or ALLOW-FROM uri.', 'alley' ),
esc_html__( 'Invalid value for %s. Must be DENY, SAMEORIGIN, or ALLOW-FROM uri.', 'alley' ),
'X-Frame-Options'
),
'2.4.0'
Expand Down

0 comments on commit 1251d49

Please sign in to comment.