Skip to content

Commit

Permalink
= 4.2.6.4 =
Browse files Browse the repository at this point in the history
  • Loading branch information
tungnxt89 committed Mar 18, 2024
1 parent e0bee19 commit 161171d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion inc/Databases/class-lp-section-items-db.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,13 @@ public function get_last_number_order( int $section_id = 0 ): int {
/**
* Delete item on section of course not in table posts.
*
* @param int $course_id
*
* @throws Exception
* @since 4.2.6.4
* @version 1.0.0
*/
public function delete_item_not_in_tb_post( $course_id ) {
public function delete_item_not_in_tb_post( int $course_id ) {
$filter_section = $this->wpdb->prepare(
"DELETE si
FROM $this->tb_lp_section_items AS si
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ protected function save_post() {
* @version 1.0.0
*/
protected function clean_data_invalid() {
error_log(1111);
// Delete items of course not in table Post, can error from old data, delete item, but not remove it in sections course
LP_Section_Items_DB::getInstance()->delete_item_not_in_tb_post( $this->lp_course->get_id() );
}
Expand Down
2 changes: 1 addition & 1 deletion learnpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ private function include_files_global() {
ListInstructorsShortcode::instance();
CourseMaterialShortcode::instance();
FilterCourseShortcode::instance();
ListCourseRecentShortcode::instance();
//ListCourseRecentShortcode::instance();
include_once 'inc/class-lp-shortcodes.php';

// include template functions .
Expand Down

0 comments on commit 161171d

Please sign in to comment.