Skip to content

Commit

Permalink
LINT ME LIKE YOU MEAN IT
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Sep 18, 2024
1 parent 768770e commit 8d99a26
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ public static function wpSetupBeforeClass( $factory ) {
);

// Add the 'edit_theme_options' capability to the theme manager (subscriber).
$theme_manager_id = get_user_by('id', self::$theme_manager_id );
$theme_manager_id = get_user_by( 'id', self::$theme_manager_id );
if ( $theme_manager_id instanceof WP_User ) {
$theme_manager_id->add_cap('edit_theme_options');
$theme_manager_id->add_cap( 'edit_theme_options' );
}

// This creates the global styles for the current theme.
Expand Down

0 comments on commit 8d99a26

Please sign in to comment.