Clean up code examples

This commit is contained in:
Tetrakern 2024-11-15 20:57:34 +01:00
parent c9a829308c
commit 958e0efdd5
2 changed files with 4 additions and 4 deletions

View File

@ -200,8 +200,8 @@ function child_prefix_chapter_index_list_item( $item, $post, $args ) {
$post->ID,
get_the_permalink( $post->ID ),
$args['icon'],
$prefix ? $prefix . ' ' : '', // New %6$s
$args['list_title'] ?: $args['title'] // Moved to %7$s
$prefix ? $prefix . ' ' : '',
$args['list_title'] ?: $args['title']
);
}

View File

@ -368,8 +368,8 @@ function child_prefix_chapter_index_list_item( $item, $post, $args ) {
$post->ID,
get_the_permalink( $post->ID ),
$args['icon'],
$prefix ? $prefix . ' ' : '', // New %6$s
$args['list_title'] ?: $args['title'] // Moved to %7$s
$prefix ? $prefix . ' ' : '',
$args['list_title'] ?: $args['title']
);
}
add_filter( 'fictioneer_filter_chapter_index_item', 'child_prefix_chapter_index_list_item', 1, 3 );