WordPress.org

Make WordPress Core

Changeset 16202


Ignore:
Timestamp:
11/05/2010 09:40:36 AM (9 years ago)
Author:
markjaquith
Message:

Allow get_post_format() to assume current post if none passed in. see #14746

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r16198 r16202  
    481481 * @return mixed The format if successful. False if no format is set.  WP_Error if errors.
    482482 */
    483 function get_post_format( $post ) {
     483function get_post_format( $post = null ) {
    484484    $post = get_post($post);
    485485
Note: See TracChangeset for help on using the changeset viewer.