WordPress.org

Make WordPress Core

Ticket #37343: 37343-02.patch

File 37343-02.patch, 395 bytes (added by Jonnyauk, 3 years ago)

Correct file path reference

  • post-template.php

    old new  
    14521452        if ( trim( $link_text ) == '' )
    14531453                $link_text = $_post->post_title;
    14541454
    1455         // If no title set, fallback to filename
    1456         if ( trim( $link_text ) == '' )
    1457                 $link_text = basename($_post->guid);
    1458 
    14591455        /**
    14601456         * Filter a retrieved attachment page link.
    14611457         *