Do i need escaping get_the_passsword_form function?

I saw themeforest/WordPress.org 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.
Which function do i need to use for escaping ?

Here is Themeforest Requirements

And Here is my code

<div class=”single-blog-content”>
<?php
if(post_password_required()) {
echo get_the_password_form( );
}else {
the_excerpt();
}
?>
</div>

Read more here:: Do i need escaping get_the_passsword_form function?

Leave a Reply

Your email address will not be published. Required fields are marked *