{"action":"closed","issue":{"url":"https://api.github.com/repos/Automattic/sensei/issues/1523","repository_url":"https://api.github.com/repos/Automattic/sensei","labels_url":"https://api.github.com/repos/Automattic/sensei/issues/1523/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/sensei/issues/1523/comments","events_url":"https://api.github.com/repos/Automattic/sensei/issues/1523/events","html_url":"https://github.com/Automattic/sensei/issues/1523","id":168766735,"number":1523,"title":"Undefined method WooThemes_Sensei_Lesson::is_pre_requisite_complete()","user":{"login":"bebaps","id":5995907,"avatar_url":"https://avatars.githubusercontent.com/u/5995907?v=3","gravatar_id":"","url":"https://api.github.com/users/bebaps","html_url":"https://github.com/bebaps","followers_url":"https://api.github.com/users/bebaps/followers","following_url":"https://api.github.com/users/bebaps/following{/other_user}","gists_url":"https://api.github.com/users/bebaps/gists{/gist_id}","starred_url":"https://api.github.com/users/bebaps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bebaps/subscriptions","organizations_url":"https://api.github.com/users/bebaps/orgs","repos_url":"https://api.github.com/users/bebaps/repos","events_url":"https://api.github.com/users/bebaps/events{/privacy}","received_events_url":"https://api.github.com/users/bebaps/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Automattic/sensei/labels/[Status]%20Needs%20Dev%20Review","name":"[Status] Needs Dev Review","color":"eb6420"},{"url":"https://api.github.com/repos/Automattic/sensei/labels/[Type]%20Bug","name":"[Type] Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Automattic/sensei/milestones/37","html_url":"https://github.com/Automattic/sensei/milestones/1.9.8","labels_url":"https://api.github.com/repos/Automattic/sensei/milestones/37/labels","id":1963224,"number":37,"title":"1.9.8","description":"","creator":{"login":"dbtlr","id":195095,"avatar_url":"https://avatars.githubusercontent.com/u/195095?v=3","gravatar_id":"","url":"https://api.github.com/users/dbtlr","html_url":"https://github.com/dbtlr","followers_url":"https://api.github.com/users/dbtlr/followers","following_url":"https://api.github.com/users/dbtlr/following{/other_user}","gists_url":"https://api.github.com/users/dbtlr/gists{/gist_id}","starred_url":"https://api.github.com/users/dbtlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbtlr/subscriptions","organizations_url":"https://api.github.com/users/dbtlr/orgs","repos_url":"https://api.github.com/users/dbtlr/repos","events_url":"https://api.github.com/users/dbtlr/events{/privacy}","received_events_url":"https://api.github.com/users/dbtlr/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":4,"state":"open","created_at":"2016-08-25T15:42:47Z","updated_at":"2016-10-06T14:08:26Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-08-01T23:37:42Z","updated_at":"2016-10-06T14:08:26Z","closed_at":"2016-10-06T14:08:26Z","body":"In the most recent version of Sensei, calling  `sensei_has_user_completed_prerequisite_lesson()` leads to a PHP Fatal Error. The error log itself reads `PHP Fatal error:  Uncaught Error: Call to undefined method WooThemes_Sensei_Lesson::is_pre_requisite_complete() in {my-wordpress-site}/plugins/woothemes-sensei/includes/template-functions.php:384`. After digging around and examing the function in question,\r\n```\r\nfunction sensei_has_user_completed_prerequisite_lesson( $current_lesson_id, $user_id ) {\r\n    return WooThemes_Sensei_Lesson::is_pre_requisite_complete( $current_lesson_id, $user_id );\r\n} // End sensei_has_user_completed_prerequisite_lesson()\r\n``` \r\nit appears the method is just spelled incorrectly. Changing `is_pre_requisite_complete` to `is_prerequisite_complete` solves the issue, and a quick search through the plugin directory seems to confirm this as there are no other instances of `is_pre_requisite_complete`. Please confirm, or let me know if I should change it back!!"}}
{"actor":{"display_login":"pgk"}}