WordPress.org

Make WordPress Core

Ticket #18561: 18561.diff

File 18561.diff, 588 bytes (added by aaroncampbell, 3 years ago)

Adds the_rest()

  • wp-includes/post-template.php

     
    229229} 
    230230 
    231231/** 
     232 * Display any post extras. 
     233 * 
     234 * @since 3.3.0 
     235 * 
     236 * @param int|object $post Post ID or post object. 
     237 */ 
     238function the_rest( $post = 0 ) { 
     239        $post = &get_post( $post ); 
     240 
     241    // Execute the rest of a posts content 
     242    do_action( 'the_rest', $post ); 
     243} 
     244 
     245/** 
    232246 * Preview fix for javascript bug with foreign languages 
    233247 * 
    234248 * @since 3.1.0