WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/28/2010 07:12:05 AM (11 years ago)
Author:
dd32
Message:

Fix slashing in Custom fields values. Allow for the meta_key to be updated without changing meta_value. Use wpdb::insert in add_meta(). Fixes #12418

File:
1 edited

Legend:

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

    r13455 r13489  
    24512451
    24522452    foreach ( $keys as $key ) {
    2453         $key = esc_attr( $key );
    2454         echo "\n<option value='" . esc_attr($key) . "'>$key</option>";
     2453        echo "\n<option value='" . esc_attr($key) . "'>" . esc_html($key) . "</option>";
    24552454    }
    24562455?>
     
    32903289                <label class="screen-reader-text" for="find-posts-input"><?php _e( 'Search' ); ?></label>
    32913290                <input type="text" id="find-posts-input" name="ps" value="" />
    3292                 <input type="button" onClick="findPosts.send();" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br />
     3291                <input type="button" onclick="findPosts.send();" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br />
    32933292
    32943293                <input type="radio" name="find-posts-what" id="find-posts-posts" checked="checked" value="posts" />
     
    33003299        </div>
    33013300        <div class="find-box-buttons">
    3302             <input type="button" class="button alignleft" onClick="findPosts.close();" value="<?php esc_attr_e('Close'); ?>" />
     3301            <input type="button" class="button alignleft" onclick="findPosts.close();" value="<?php esc_attr_e('Close'); ?>" />
    33033302            <input id="find-posts-submit" type="submit" class="button-primary alignright" value="<?php esc_attr_e('Select'); ?>" />
    33043303        </div>
Note: See TracChangeset for help on using the changeset viewer.