WordPress.org

Make WordPress Core

Ticket #18561: 18561.twentyeleven.diff

File 18561.twentyeleven.diff, 1.3 KB (added by aaroncampbell, 7 years ago)

Adds support for the_rest() to Twenty eleven

  • wp-content/themes/twentyeleven/content-single.php

     
    4949                                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) )
    5050                        );
    5151                ?>
     52                <?php the_rest(); ?>
    5253                <?php edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' ); ?>
    5354
    5455                <?php if ( get_the_author_meta( 'description' ) && is_multi_author() ) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?>
  • wp-content/themes/twentyeleven/functions.php

     
    103103        // Add support for a variety of post formats
    104104        add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image' ) );
    105105
     106        // We use the_rest()
     107        add_theme_support( 'the-rest' );
     108
    106109        // Add support for custom backgrounds
    107110        add_custom_background();
    108111
     
    590593        return $classes;
    591594}
    592595add_filter( 'body_class', 'twentyeleven_body_classes' );
    593