Remove hidden chapter hint in ePUBs

This commit is contained in:
Tetrakern 2023-12-17 01:25:04 +01:00
parent e83a5ec2b5
commit 7565ae283a

View File

@ -402,10 +402,7 @@ if ( ! function_exists( 'fictioneer_add_epub_chapters' ) ) {
// Hidden?
if ( $is_hidden && ! $processed ) {
$processed = true;
$head->appendChild( $doc->createElement( 'title', _x( 'Hidden Chapter', 'ePUB', 'fictioneer' ) ) );
$frame->appendChild( $doc->createElement( 'h1', _x( 'Hidden Chapter', 'ePUB', 'fictioneer' ) ) );
$frame->appendChild( $doc->createElement( 'p', _x( 'This chapter is hidden and only available on the website.', 'ePUB', 'fictioneer' ) ) );
continue;
}
// No content?