Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Jan 12, 2024
1 parent 37331bc commit 79f9ba7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/alley/wp/alleyvate/features/class-prevent-framing.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ public static function filter__wp_headers( $headers ): array {

/**
* Optionally allow the Content-Security-Policy header to be used
* instead of X-Frame-Options. The Content-Security-Policy header
* obsoletes the X-Frame-Options header when used.
* instead of X-Frame-Options.
*
* The Content-Security-Policy header obsoletes the X-Frame-Options
* header when used.
*/
if ( apply_filters( 'alleyvate_prevent_framing_csp', false ) ) {
if ( isset( $headers['Content-Security-Policy'] ) ) {
Expand Down Expand Up @@ -100,7 +102,7 @@ protected static function get_content_security_policy_header(): string {
/**
* Filter the value of the Content-Security-Policy header.
*
* @param string $value The value of the Content-Security-Policy header. Default 'frame-ancestors \'self\''
* @param string $value The value of the Content-Security-Policy header. Defaults to 'frame-ancestors \'self\''
*/
return apply_filters(
'alleyvate_prevent_framing_csp_header',
Expand Down

0 comments on commit 79f9ba7

Please sign in to comment.