WordPress.org

Make WordPress Core

Changeset 24146


Ignore:
Timestamp:
04/30/2013 11:48:18 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Make $post_id argument optional for _post_formats_title(). props kovshenin. fixes #24233. see #24011.

File:
1 edited

Legend:

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

    r24129 r24146  
    950950 * @access private
    951951 */
    952 function _post_formats_title( $title, $post_id ) {
    953     if ( is_admin() || is_feed() || ! in_array( get_post_format( $post_id ), array( 'aside', 'status' ) ) )
     952function _post_formats_title( $title, $post_id = 0 ) {
     953    if ( ! $post_id || is_admin() || is_feed() || ! in_array( get_post_format( $post_id ), array( 'aside', 'status' ) ) )
    954954        return $title;
    955955
Note: See TracChangeset for help on using the changeset viewer.