Skip to content

Commit 45fcc1c

Browse files
committed
Ignore some PHPCS checks that don't apply
1 parent dea6d45 commit 45fcc1c

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
* Fix: Fix URL for plugin listing donate link
5858
* Change: Store donation URL as object variable
5959
* Change: Update strings used for settings page donation link
60+
* Change: Ignore some PHPCS checks that don't apply
6061
* Change: Update and improve long description and numerous FAQ entries
6162
* Change: Note compatibility through WP 6.7+
6263
* Change: Drop compatibility with version of WP older than 5.5

‎add-admin-css.php‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ public function contextual_help( $contextual_help, $screen_id, $screen = null )
364364
);
365365
$help .= '</p>';
366366

367+
// phpcs:ignore Squiz.PHP.Heredoc.NotAllowed -- This is purely a harcoded and formatted string.
367368
$help .= <<<HTML
368369
<pre><code>function my_admin_css( \$css ) {
369370
\$css .= "
@@ -383,6 +384,7 @@ public function contextual_help( $contextual_help, $screen_id, $screen = null )
383384
);
384385
$help .= '</p>';
385386

387+
// phpcs:ignore Squiz.PHP.Heredoc.NotAllowed -- This is purely a harcoded and formatted string.
386388
$help .= <<<HTML
387389
<pre><code>function my_admin_css_files( \$files ) {
388390
\$files[] = 'http://yui.yahooapis.com/2.9.0/build/reset/reset-min.css';
@@ -399,6 +401,7 @@ public function contextual_help( $contextual_help, $screen_id, $screen = null )
399401
);
400402
$help .= '</p>';
401403

404+
// phpcs:ignore Squiz.PHP.Heredoc.NotAllowed -- This is purely a harcoded and formatted string.
402405
$help .= <<<HTML
403406
<pre><code>function my_limit_add_admin_css_to_admins( \$disable ) {
404407
// If the user isn't an admin, don't output the CSS from Add Admin CSS.
@@ -554,6 +557,7 @@ public function is_recovery_mode_enabled() {
554557
$enabled = true;
555558
}
556559
// Recovery mode is enabled via query parameter and user can change settings.
560+
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Value is only used to enable recovery mode by users who can do so.
557561
elseif ( isset( $_GET[ self::NO_CSS_QUERY_PARAM ] ) && '1' === $_GET[ self::NO_CSS_QUERY_PARAM ] && current_user_can( 'manage_options' ) ) {
558562
$enabled = true;
559563
}

0 commit comments

Comments
 (0)