WordPress.org

Make WordPress Core

Ticket #24011: 24011.6.diff

File 24011.6.diff, 538 bytes (added by MZAWeb, 5 years ago)
  • wp-includes/post-formats.php

    diff --git wp-includes/post-formats.php wp-includes/post-formats.php
    index d7ddaa9..360f7f2 100644
    function _post_formats_fix_empty_title( $data, $postarr ) { 
    999999        if ( isset( $postarr['post_format'] ) ) 
    10001000                $post_format = ( in_array( $postarr['post_format'], get_post_format_slugs() ) ) ? $postarr['post_format'] : ''; 
    10011001 
     1002        if ( empty( $post_format ) ) 
     1003                return $data; 
     1004         
    10021005        if ( ! in_array( $post_format, array( 'aside', 'status' ) ) ) 
    10031006                return $data; 
    10041007