Make WordPress Core

Ticket #54301: 54301.diff

File 54301.diff, 487 bytes (added by sayedulsayem, 3 years ago)

patch added.

  • src/wp-admin/includes/template.php

    diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
    index 4228d931ba..f65fa0294f 100644
    a b function the_post_password() { 
    19861986 */
    19871987function _draft_or_post_title( $post = 0 ) {
    19881988        $title = get_the_title( $post );
    1989         if ( empty( $title ) ) {
     1989        if ( empty( $title ) && ! is_numeric( $title ) ) {
    19901990                $title = __( '(no title)' );
    19911991        }
    19921992        return esc_html( $title );