WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/21/2006 10:10:04 AM (15 years ago)
Author:
markjaquith
Message:

new function for escaping within attributes: attribute_escape()

File:
1 edited

Legend:

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

    r4416 r4656  
    112112echo '<ol>';
    113113foreach ($recents as $recent) :
    114     echo "<li><a href='templates.php?file=" . wp_specialchars($recent, true) . "'>" . get_file_description(basename($recent)) . "</a></li>";
     114    echo "<li><a href='templates.php?file=" . attribute_escape($recent) . "'>" . get_file_description(basename($recent)) . "</a></li>";
    115115endforeach;
    116116echo '</ol>';
Note: See TracChangeset for help on using the changeset viewer.