Make WordPress Core


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

Comment_allowed_tags fixup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.