WordPress.org

Make WordPress Core

Ticket #44840: 44840.patch

File 44840.patch, 440 bytes (added by Mirucon, 11 months ago)
  • src/wp-includes/post-formats.php

    diff --git a/src/wp-includes/post-formats.php b/src/wp-includes/post-formats.php
    index eb6fef0380..4c27ab6e5b 100644
    a b  
    1515 * @return string|false The format if successful. False otherwise.
    1616 */
    1717function get_post_format( $post = null ) {
    18         if ( ! $post = get_post( $post ) ) {
     18        $post = get_post( $post );
     19        if ( ! $post ) {
    1920                return false;
    2021        }
    2122