Fixes #1966
git-svn-id: https://develop.svn.wordpress.org/trunk@3224 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4ae18b8c15
commit
e6ce4ad421
@ -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 = "#<a[^>]+rel=('|\")[^'\"]*attachment[^>]*>#ie";
|
||||
|
Loading…
Reference in New Issue
Block a user