Make WordPress Core


Ignore:
Timestamp:
11/10/2005 04:52:12 PM (19 years ago)
Author:
ryan
Message:

Delete link fix from donncha. fixes #1862

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/inline-uploading.php

    r2997 r3027  
    180180        $href = get_subpost_link($object);
    181181        $images_script .= "href".$i."a = '$href';\nhref".$i."b = '{$image['guid']}';\n";
    182         $images_html .= <<<HERE
     182        $images_html .= "
    183183<div id='target$i' class='imagewrap left'>
    184184    <div id='popup$i' class='popup'>
    185         <a id="L$i" onclick="toggleLink($i);return false;" href="javascript:void();">$__subpost_on</a>
    186         <a id="I$i" onclick="if($thumb)toggleImage($i);else alert('$__nothumb');return false;" href="javascript:void();">$thumbtext</a>
    187         <a onclick="return confirm('$__confirmdelete')" href="<?php echo basename(__FILE__); ?>?action=delete&amp;object=$object&amp;all=$all&amp;start=$start&amp;post=$post">$__delete</a>
    188         <a onclick="popup.style.display='none';return false;" href="javascript:void()">$__close</a>
     185        <a id=\"L$i\" onclick=\"toggleLink($i);return false;\" href=\"javascript:void();\">$__subpost_on</a>
     186        <a id=\"I$i\" onclick=\"if($thumb)toggleImage($i);else alert('$__nothumb');return false;\" href=\"javascript:void();\">$thumbtext</a>
     187        <a onclick=\"return confirm('$__confirmdelete')\" href=\"".basename(__FILE__)."?action=delete&amp;object=$object&amp;all=$all&amp;start=$start&amp;post=$post\">$__delete</a>
     188        <a onclick=\"popup.style.display='none';return false;\" href=\"javascript:void()\">$__close</a>
    189189    </div>
    190     <a id="link$i" class="imagelink" href="$href" onclick="imagePopup($i);return false;" title="{$image['post_title']}">
     190    <a id=\"link$i\" class=\"imagelink\" href=\"$href\" onclick=\"imagePopup($i);return false;\" title=\"{$image['post_title']}\">     
    191191        <img id='image$i' src='$src' alt='{$image['post_title']}' $height_width />
    192192    </a>
    193193</div>
    194 HERE;
     194";
    195195        $i++;
    196196    }
Note: See TracChangeset for help on using the changeset viewer.