Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion classes/Tutor.php
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@
}

// Only kirki latest has class KirkiMain.
$is_kirki_active = \is_plugin_active( 'kirki/kirki.php' ) && class_exists( 'KirkiMain' );
$is_kirki_active = \is_plugin_active( 'kirki-pro/kirki-pro.php' ) && class_exists( 'KirkiProMain' );

if ( $is_kirki_active ) {
$tutor_kirki_path = $tutor_path . 'includes/kirki/kirki.php';
Expand All @@ -646,7 +646,7 @@
$is_droip_active = \is_plugin_active( 'droip/droip.php' );
$tutor_droip_path = $tutor_path . 'includes/droip/droip.php';
if ( $is_droip_active && file_exists( $tutor_droip_path ) ) {
include $tutor_droip_path;

Check failure on line 649 in classes/Tutor.php

View workflow job for this annotation

GitHub Actions / WPCS

Function closing brace must go on the next line following the body; found 1 blank lines before brace
}
}

Expand Down Expand Up @@ -1139,7 +1139,7 @@
$administrator->add_cap( $cap );
}
}

Check failure on line 1142 in classes/Tutor.php

View workflow job for this annotation

GitHub Actions / WPCS

Capabilities should be used instead of roles. Found "administrator" in function call to current_user_can()
/**
* Add Instructor role to administrator
*/
Expand Down
Loading