WPTT / theme-sniffer

Theme Sniffer plugin using sniffs.
MIT License
270 stars 3 forks source link

How to fix this warning? Its wordpress function #88

Closed abdulmomin-dev closed 6 years ago

abdulmomin-dev commented 6 years ago

WARNING Expected next thing to be an escaping function (see Codex for 'Data Validation'), not 'paginate_links'

I use this in my theme echo paginate_links( array( 'prev_text' => '<i class="fa fa-angle-left" aria-hidden="true"></i>', 'next_text' => '<i class="fa fa-angle-right" aria-hidden="true"></i>', ) );

ernilambar commented 6 years ago

First thing, not all warnings are necessary to be fixed. You need to check manually whether it needs to be fixed or not. Second thing is that, do not use paginate_links(). Use the_posts_pagination() instead.

abdulmomin-dev commented 6 years ago

Thanks @ernilambar its work fine.