Skip to content

Commit

Permalink
fix: correct linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford committed Jan 9, 2024
1 parent 447a8e3 commit a661bbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-newspack-ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ public static function return_demo_content() {
* @return string Modified $content with demo appended.
*/
public static function load_demo( $content ) {
if ( isset( $_REQUEST['ui-demo'] ) && current_user_can('administrator') ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
if ( isset( $_REQUEST['ui-demo'] ) && current_user_can( 'administrator' ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
$content .= self::return_demo_content();
}
return $content;
Expand Down

0 comments on commit a661bbc

Please sign in to comment.