Error when using an element "Post naviation"

Hello there, There is an error triggered when using an element “Post naviation” :
Notice: Undefined variable: pagination_numbered_hide in
/wp-content/themes/pro/cornerstone/includes/views/partials/pagination.php
on line 103
because the variable $pagination_numbered_hide is tested but is not provided by the styling options (as documented in https://theme.co/docs/pagination#post-navigation, some styling options don’t exist in this element)

Solution is to check if the variable is set :
if ( isset($pagination_numbered_hide) && $pagination_numbered_hide !== ‘xl’ && $pagination_numbered_hide !== ‘none’) {

Can it be fix in a futur release ? It keep popping up on my debug.log when i’m using it and debugging.

Thanks !

Hello @popoche,

Thanks for your feedback. We will be adding this to our issue tracker and will be looked into by our development team. I cannot make any promises relating to a fix at this stage. I will add a note to the tracker referencing your report though so our dev team can see there are multiple reports of the issue.

Cheers.

Thanks for the reply.

Hi @popoche,

Thank you for sharing this with us. I’m glad to see you were able to sort it out on your site. We’ve corrected this for the next point release (Pro 5.0.8) which should be available within the next 24 hours.

Awesome ! Thanks.

Hi @popoche,

You are most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.