Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code review changes #5

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Code review changes #5

wants to merge 4 commits into from

Conversation

Archinj
Copy link
Contributor

@Archinj Archinj commented Sep 4, 2024

No description provided.

@@ -99,21 +100,22 @@ public function ld_custom_autocomplete_timer() {
$is_complete = learndash_process_mark_complete( $user_id, intval( $_POST['post_id'] ), false, intval( $_POST['course_id'] ) );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sanitize input before function call

@@ -125,17 +121,41 @@ public function ld_custom_autocomplete_timer() {
* @return void
*/
public function ld_custom_autocomplete_topic( $post_id, $course_id, $user_id ) {
$this->ld_custom_autocomplete_checker( $post_id, $course_id, $user_id, false );
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be flagged again as the same function being called within two different functions. We can replace the two function call with a single function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants