I'm developing my first theme using "Beans" framework. I've a question, we all know that a perfect WordPress theme is very strict about data validation. It is the thumb rule of coding in WordPress and there are so many functions to take care of the validations.
My question is, suppose in the loop when we are going to print the permalink of the title of a post, we use like following code snippets. Instead of using get_permalink() function directly, we validate it the following way ...
<?php the_title( sprintf( '<h2 class="post-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
But in beans, we can achieve the same thing simply by the following code snippet
<?php beans_post_title(); ?>
My question is do I've to worry about data validations when using beans built in functions? Do I have to code like this?
<?php esc_html( beans_post_title() ) ?>
or it is not needed? or when I'm using Beans built in functions, the framework automatically takes care of the all validations?