Skip to content

Conversation

@nur-alam
Copy link
Collaborator

@nur-alam nur-alam commented Jan 7, 2026

No description provided.

$per_page = tutor_utils()->get_option( 'pagination_per_page', 20 );
$current_page = max( 1, Input::get( 'current_page', 1, Input::TYPE_INT ) );
$offset = ( $current_page - 1 ) * $per_page;
$wishlist_per_page = tutor_utils()->get_option( 'pagination_per_page', 20 );
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add int typecast.


$wishlists = tutor_utils()->get_wishlist( null, $offset, $per_page );
$wishlists = tutor_utils()->get_wishlist( null, $offset, $wishlist_per_page );
$total_wishlists_count = count( tutor_utils()->get_wishlist( null ) );
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need to pass null param

</div>
<?php else : ?>
<?php tutor_utils()->tutor_empty_state( tutor_utils()->not_found_text() ); ?>
<?php EmptyState::make()->title( 'No Courses Found' )->render(); ?>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Translate it.

@shewa12 shewa12 merged commit b9a863b into 4.0.0-dev Jan 8, 2026
0 of 13 checks passed
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.

3 participants