From e6ce4ad42152fdd129b44de1a28bb2db967c8233 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Mon, 28 Nov 2005 23:06:21 +0000 Subject: [PATCH] Fixes #1966 git-svn-id: https://develop.svn.wordpress.org/trunk@3224 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-functions.php | 4 ---- 1 file changed, 4 deletions(-) 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";