Make WordPress Core


Ignore:
Timestamp:
07/05/2006 08:21:45 PM (20 years ago)
Author:
ryan
Message:

Validation fixes from leftjustified. fixes #2907

File:
1 edited

Legend:

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

    r3937 r3982  
    239239            $ypadding = (96 - $image['uheight']) / 2;
    240240            $style .= "#target{$ID} img { padding: {$ypadding}px {$xpadding}px; }\n";
    241             $title = htmlentities($image['post_title'], ENT_QUOTES);
     241            $title = wp_specialchars($image['post_title'], ENT_QUOTES);
    242242            $script .= "aa[{$ID}] = '<a id=\"p{$ID}\" rel=\"attachment\" class=\"imagelink\" href=\"$href\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">';
    243243ab[{$ID}] = '<a class=\"imagelink\" href=\"{$image['guid']}\" onclick=\"doPopup({$ID});return false;\" title=\"{$title}\">';
     
    259259";
    260260        } else {
    261             $title = htmlentities($attachment['post_title'], ENT_QUOTES);
     261            $title = wp_specialchars($attachment['post_title'], ENT_QUOTES);
    262262            $filename = basename($attachment['guid']);
    263263            $icon = get_attachment_icon($ID);
     
    300300<head>
    301301<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_settings('blog_charset'); ?>" />
     302<title></title>
    302303<meta http-equiv="imagetoolbar" content="no" />
    303304<script type="text/javascript">
     305// <![CDATA[
    304306/* Define any variables we'll need, such as alternate URLs. */
    305307<?php echo $script; ?>
     
    439441        win.edInsertContent(win.edCanvas, h);
    440442}
     443// ]]>
    441444</script>
    442445<style type="text/css">
     
    679682<?php elseif ( $action == 'upload' ) : ?>
    680683<div class="tip"></div>
    681 <form enctype="multipart/form-data" id="uploadForm" method="POST" action="<?php echo basename(__FILE__); ?>">
     684<form enctype="multipart/form-data" id="uploadForm" method="post" action="<?php echo basename(__FILE__); ?>">
    682685<table style="width:99%;">
    683686<tr>
     
    710713</tr>
    711714</table>
    712 </div>
    713715</form>
    714716<?php elseif ( $action == 'links' ) : ?>
Note: See TracChangeset for help on using the changeset viewer.