WordPress.org

Make WordPress Core

Ticket #23091: 23091.diff

File 23091.diff, 520 bytes (added by MikeHansenMe, 15 months ago)
  • wp-admin/includes/post.php

     
    742742        if ( !strpos($content, '?attachment_id=') || !preg_match_all( '/<a ([^>]+)>[\s\S]+?<\/a>/', $content, $link_matches ) ) 
    743743                return; 
    744744 
    745         $site_url = get_bloginfo('url'); 
     745        $site_url = home_url(); 
    746746        $site_url = substr( $site_url, (int) strpos($site_url, '://') ); // remove the http(s) 
    747747        $replace = ''; 
    748748