Make WordPress Core

Ticket #58695: 58695.patch

File 58695.patch, 2.1 KB (added by sabernhardt, 19 months ago)
  • src/wp-content/themes/twentyseventeen/inc/template-functions.php

     
    6767add_filter( 'body_class', 'twentyseventeen_body_classes' );
    6868
    6969/**
    70  * Count our number of active panels.
     70 * Counts the number of our active panels.
    7171 *
    72  * Primarily used to see if we have any panels active, duh.
     72 * Primarily used to see if we have any panels active.
    7373 */
    7474function twentyseventeen_panel_count() {
    7575
  • src/wp-content/themes/twentyseventeen/inc/template-tags.php

     
    7070                // Get Tags for posts.
    7171                $tags_list = get_the_tag_list( '', $separate_meta );
    7272
    73                 // We don't want to output .entry-footer if it will be empty, so make sure its not.
     73                // We don't want to output .entry-footer if it will be empty, so make sure it is not.
    7474                if ( ( ( twentyseventeen_categorized_blog() && $categories_list ) || $tags_list ) || get_edit_post_link() ) {
    7575
    7676                        echo '<footer class="entry-footer">';
     
    131131endif;
    132132
    133133/**
    134  * Display a front page section.
     134 * Displays a front page section.
    135135 *
    136136 * @global int|string $twentyseventeencounter Front page section counter.
    137137 * @global WP_Post    $post                   Global post object.
     
    205205
    206206
    207207/**
    208  * Flush out the transients used in twentyseventeen_categorized_blog.
     208 * Flushes out the transients used in twentyseventeen_categorized_blog.
    209209 */
    210210function twentyseventeen_category_transient_flusher() {
    211211        if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
     
    219219
    220220if ( ! function_exists( 'wp_body_open' ) ) :
    221221        /**
    222          * Fire the wp_body_open action.
     222         * Fires the wp_body_open action.
    223223         *
    224224         * Added for backward compatibility to support pre-5.2.0 WordPress versions.
    225225         *