Make WordPress Core


Ignore:
Timestamp:
07/03/2005 05:42:11 PM (21 years ago)
Author:
matt
Message:

Ugly escaping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/post.php

    r2691 r2692  
    168168        die( __('You are not allowed to delete comments on this post.') );
    169169
    170     echo "<div class=\"wrap\">\n";
     170    echo "<div class='wrap'>\n";
    171171    echo "<p>" . __('<strong>Caution:</strong> You are about to delete the following comment:') . "</p>\n";
    172     echo "<table border=\"0\">\n";
    173     echo "<tr><td>" . __('Author:') . "</td><td>" . $comment->comment_author . "</td></tr>\n";
    174     echo "<tr><td>" . __('E-mail:') . "</td><td>" . $comment->comment_author_email . "</td></tr>\n";
    175     echo "<tr><td>". __('URL:') . "</td><td>" . $comment->comment_author_url . "</td></tr>\n";
    176     echo "<tr><td>". __('Comment:') . "</td><td>" . $comment->comment_content . "</td></tr>\n";
     172    echo "<table border='0'>\n";
     173    echo "<tr><td>" . __('Author:') . "</td><td>$comment->comment_author</td></tr>\n";
     174    echo "<tr><td>" . __('E-mail:') . "</td><td>$comment->comment_author_email</td></tr>\n";
     175    echo "<tr><td>". __('URL:') . "</td><td>$comment->comment_author_url</td></tr>\n";
     176    echo "<tr><td>". __('Comment:') . "</td><td>$comment->comment_content</td></tr>\n";
    177177    echo "</table>\n";
    178178    echo "<p>" . __('Are you sure you want to do that?') . "</p>\n";
    179179
    180180    echo "<form action='".get_settings('siteurl')."/wp-admin/post.php' method='get'>\n";
    181     echo "<input type=\"hidden\" name=\"action\" value=\"deletecomment\" />\n";
    182     echo "<input type=\"hidden\" name=\"p\" value=\"$p\" />\n";
    183     echo "<input type=\"hidden\" name=\"comment\" value=\"{$comment->comment_ID}\" />\n";
    184     echo "<input type=\"hidden\" name=\"noredir\" value=\"1\" />\n";
    185     echo "<input type=\"submit\" value=\"" . __('Yes') . "\" />";
     181    echo "<input type='hidden' name='action' value='deletecomment' />\n";
     182    echo "<input type='hidden' name='p' value='$p' />\n";
     183    echo "<input type='hidden' name='comment' value='{$comment->comment_ID}' />\n";
     184    echo "<input type='hidden' name='noredir' value='1' />\n";
     185    echo "<input type='submit' value='" . __('Yes') . "' />";
    186186    echo "&nbsp;&nbsp;";
    187     echo "<input type=\"button\" value=\"" . __('No') . "\" onclick=\"self.location='". get_settings('siteurl') ."/wp-admin/edit.php?p=$p&amp;c=1#comments';\" />\n";
     187    echo "<input type='button' value='" . __('No') . "' onclick='self.location='". get_settings('siteurl') ."/wp-admin/edit.php?p=$p&amp;c=1#comments';' />\n";
    188188    echo "</form>\n";
    189189    echo "</div>\n";
Note: See TracChangeset for help on using the changeset viewer.