WordPress.org

Make WordPress Core

Ticket #1966: 1966.diff

File 1966.diff, 466 bytes (added by skeltoac, 16 years ago)
  • wp-admin/admin-functions.php

     
    8181function fix_attachment_links($post_ID) {
    8282        global $wp_rewrite;
    8383
    84         // Relevance check.
    85         if ( false == $wp_rewrite->using_permalinks() )
    86                 return;
    87 
    8884        $post = & get_post($post_ID);
    8985
    9086        $search = "#<a[^>]+rel=('|\")[^'\"]*attachment[^>]*>#ie";