WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #21309, comment 22


Ignore:
Timestamp:
09/22/12 16:05:33 (19 months ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21309, comment 22

    initial v1  
    1010$some_value = sanitize_post_field( 'some_key', get_post_meta( $post->ID, 'some_key', true ), $post->ID, 'display' ); 
    1111}}} 
     12 
     13Benefits: 
     14 
     15* increased conciseness and readability 
     16* automatic sanitization, thus better security 
     17* consistency with WP_User