Redundant markup in the title.
-
Hi, please confirm a bug.
Path to recreate.
- Install and activate plugin.
- Add new translation Spanish language
- Go to functions.php theme file and add code
add_filter(‘the_title’, ‘foo’);
function foo( $title ) {
return ”;
}add_action(‘loop_start’, ‘bar’);
function bar() {
ob_start();
var_dump( get_the_title() );
$imp_to_file = ob_get_clean();
file_put_contents(‘/var/www/html/test.html’, $imp_to_file, FILE_APPEND);
}4. Go to english page. And it ok get_the_title() return nothing
5. Go to the Spanish page and observe the issue get_the_title() returns redundant trp-post-container empty tag here.
It’s produse issue cose frequently theme athors rely on this function get_the_title to check if they need ourput their own title markup
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Redundant markup in the title.’ is closed to new replies.