Make WordPress Core

Changeset 709


Ignore:
Timestamp:
01/03/2004 11:48:16 PM (21 years ago)
Author:
saxmatt
Message:

Comment_allowed_tags fixup.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments-popup.php

    r628 r709  
    5454<?php if ('open' == $commentstatus->comment_status) { ?>
    5555<h2>Leave a Comment</h2>
    56 <p>Line and paragraph breaks automatic, website trumps email, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code><?php echo htmlentities(str_replace('<', ' <', $comment_allowed_tags)); ?></code></p>
     56<p>Line and paragraph breaks automatic, website trumps email, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code><?php echo allowed_tags(); ?></code></p>
    5757
    5858<form action="<?php echo $siteurl; ?>/wp-comments-post.php" method="post" id="commentform">
  • trunk/wp-comments.php

    r673 r709  
    4545<h2>Leave a Comment</h2>
    4646<?php if ('open' == $post->comment_status) { ?>
    47 <p>Line and paragraph breaks automatic, website trumps email, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code><?php echo htmlentities(str_replace('<', ' <', $comment_allowed_tags)); ?></code></p>
     47<p>Line and paragraph breaks automatic, website trumps email, <acronym title="Hypertext Markup Language">HTML</acronym> allowed: <code><?php echo allowed_tags(); ?></code></p>
    4848
    4949<form action="<?php echo $siteurl; ?>/wp-comments-post.php" method="post" id="commentform">
  • trunk/wp-includes/kses.php

    r663 r709  
    1919                 'em' => array(),
    2020                 'strike' => array(),
    21                  'a' => array('href'  => array('minlen' => 6, 'maxlen' => 250),
     21                 'a' => array('href',
    2222                              'title',
    23                               'rel' => array('minlen' => 3, 'maxlen' => 250)),
    24                 'blockquote' => array('cite' => array()),
     23                              'rel'),
     24                'blockquote' => array('cite'),
    2525                'del' => array('datetime'),
    2626                 'br' => array());
  • trunk/wp-includes/template-functions.php

    r706 r709  
    18801880/***** // Permalink tags *****/
    18811881
     1882function allowed_tags() {
     1883    global $allowedtags;
     1884    foreach($allowedtags as $tag => $attributes) {
     1885        $allowed .= "<$tag";
     1886        if (0 < count($attributes)) {
     1887            foreach ($attributes as $attribute) {
     1888                $allowed .= " $attribute=\"\"";
     1889            }
     1890        }
     1891        $allowed .= "> ";
     1892    }
     1893    return htmlentities($allowed);
     1894}
     1895
    18821896?>
Note: See TracChangeset for help on using the changeset viewer.