diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index bda12934bb..a5291f1e8e 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -81,10 +81,6 @@ function relocate_children($old_ID, $new_ID) { function fix_attachment_links($post_ID) { global $wp_rewrite; - // Relevance check. - if ( false == $wp_rewrite->using_permalinks() ) - return; - $post = & get_post($post_ID); $search = "#]+rel=('|\")[^'\"]*attachment[^>]*>#ie";