WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/25/2007 09:41:04 AM (15 years ago)
Author:
ryan
Message:

attribute_escape()s and int casts. see #4333

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r5542 r5543  
    355355        $entry['meta_key']   = attribute_escape($entry['meta_key']);
    356356        $entry['meta_value'] = attribute_escape($entry['meta_value']);
     357        $entry['meta_id'] = (int) $entry['meta_id'];
    357358        $r .= "\n\t<tr id='meta-{$entry['meta_id']}' class='$style'>";
    358359        $r .= "\n\t\t<td valign='top'><input name='meta[{$entry['meta_id']}][key]' tabindex='6' type='text' size='20' value='{$entry['meta_key']}' /></td>";
     
    394395
    395396    foreach ( $keys as $key ) {
    396         $key = attribute_escape( $key);
     397        $key = attribute_escape( $key );
    397398        echo "\n\t<option value='$key'>$key</option>";
    398399    }
Note: See TracChangeset for help on using the changeset viewer.