max_num_pages < 2 ) { return; } ?> post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) { return; } ?> %2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); $posted_on = '' . $time_string . ''; $byline = '' . esc_html( get_the_author() ) . ''; $categories = get_the_category_list( esc_html__( ', ', 'starter-blog' ) ); if ( $categories ) { $categories = ' ' . wp_kses($categories, array('a' => array('href' => array(), 'rel' => array()))) . ''; // WPCS: XSS OK. } echo ' ' . $posted_on . ' ' . $byline . ' '.$categories; // WPCS: XSS OK. } endif; if ( ! function_exists( 'starterblog_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function starterblog_entry_footer() { if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; echo ' '; comments_popup_link( esc_html__( 'Leave a comment', 'starter-blog' ), esc_html__( '1 Comment', 'starter-blog' ), esc_html__( '% Comments', 'starter-blog' ) ); echo ''; } // Hide category and tag text for pages. if ( 'post' == get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html__( ', ', 'starter-blog' ) ); if ( $tags_list ) { printf( '' . wp_kses(__( ' %1$s', 'starter-blog' ), array('i' => array( 'class' => array() ))) . '', $tags_list ); // WPCS: XSS OK. } } edit_post_link( esc_html__( 'Edit', 'starter-blog' ), ' ', '' ); } endif; if ( ! function_exists( 'starterblog_category_transient_flusher' ) ) : /** * Flush out the transients used in starterblog_categorized_blog. */ function starterblog_category_transient_flusher() { if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return; } // Like, beat it. Dig? delete_transient( 'starterblog_categories' ); } add_action( 'edit_category', 'starterblog_category_transient_flusher' ); add_action( 'save_post', 'starterblog_category_transient_flusher' ); endif;