Hi, I saw themeforest has said all WordPress default get functions need to be escaped output for security region for WordPress Theme or Plugin development, Now I want to show password form if a post has password protected. So now I’m using get_the_password_form () function. Now I need to know this function do I need escaping?
If answer Yes, Please help me, How can I escape this function? Like esc_html (), or esc_url () etc.
Here is Themeforest requirements link
And Here is my code
<div class="single-blog-content">
<?php
if(post_password_required()) {
echo get_the_password_form( );
}else {
the_excerpt();
}
?>
</div>