Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/bookmark.php

    r14239 r17146  
    88
    99/**
    10  * Retrieve Bookmark data based on ID
     10 * Retrieve Bookmark data
    1111 *
    1212 * @since 2.1.0
    1313 * @uses $wpdb Database Object
    1414 *
    15  * @param int $bookmark_id
     15 * @param mixed $bookmark
    1616 * @param string $output Optional. Either OBJECT, ARRAY_N, or ARRAY_A constant
    1717 * @param string $filter Optional, default is 'raw'.
     
    335335
    336336    if ( 'edit' == $context ) {
    337         $format_to_edit = array('link_notes');
    338337        $value = apply_filters("edit_$field", $value, $bookmark_id);
    339338
    340         if ( in_array($field, $format_to_edit) ) {
    341             $value = format_to_edit($value);
     339        if ( 'link_notes' == $field ) {
     340            $value = esc_html( $value ); // textarea_escaped
    342341        } else {
    343342            $value = esc_attr($value);
Note: See TracChangeset for help on using the changeset viewer.