diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 64b66e25d9..7f0ed5e004 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -93,7 +93,7 @@ function fix_attachment_links($post_ID) { return; $i = 0; - $search = "# id=(\"|)(\d+)\\1#i"; + $search = "# id=(\"|')p(\d+)\\1#i"; foreach ( $anchor_matches[0] as $anchor ) { if ( 0 == preg_match($search, $anchor, $id_matches) ) continue; diff --git a/wp-admin/inline-uploading.php b/wp-admin/inline-uploading.php index a033ebac59..c2706320c2 100644 --- a/wp-admin/inline-uploading.php +++ b/wp-admin/inline-uploading.php @@ -232,7 +232,7 @@ srcb[{$ID}] = '{$image['guid']}'; $xpadding = (128 - $image['uwidth']) / 2; $ypadding = (96 - $image['uheight']) / 2; $style .= "#target{$ID} img { padding: {$ypadding}px {$xpadding}px; }\n"; - $script .= "aa[{$ID}] = ''; + $script .= "aa[{$ID}] = ''; ab[{$ID}] = ''; imga[{$ID}] = ''; imgb[{$ID}] = ''; @@ -255,15 +255,15 @@ imgb[{$ID}] = '$__using_title"; - $script .= "aa[{$ID}] = '{$attachment['post_title']}'; -ab[{$ID}] = '{$attachment['post_title']}'; + $script .= "aa[{$ID}] = '{$attachment['post_title']}'; +ab[{$ID}] = '{$attachment['post_title']}'; title[{$ID}] = '{$attachment['post_title']}'; filename[{$ID}] = '{$filename}'; icon[{$ID}] = '{$icon}'; "; $html .= "