Fixes #1966
git-svn-id: http://svn.automattic.com/wordpress/trunk@3224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
beff0bedba
commit
9a440c7951
|
@ -81,10 +81,6 @@ function relocate_children($old_ID, $new_ID) {
|
||||||
function fix_attachment_links($post_ID) {
|
function fix_attachment_links($post_ID) {
|
||||||
global $wp_rewrite;
|
global $wp_rewrite;
|
||||||
|
|
||||||
// Relevance check.
|
|
||||||
if ( false == $wp_rewrite->using_permalinks() )
|
|
||||||
return;
|
|
||||||
|
|
||||||
$post = & get_post($post_ID);
|
$post = & get_post($post_ID);
|
||||||
|
|
||||||
$search = "#<a[^>]+rel=('|\")[^'\"]*attachment[^>]*>#ie";
|
$search = "#<a[^>]+rel=('|\")[^'\"]*attachment[^>]*>#ie";
|
||||||
|
|
Loading…
Reference in New Issue