Make WordPress Core

Changeset 11282


Ignore:
Timestamp:
05/11/2009 10:10:45 PM (15 years ago)
Author:
westi
Message:

Drop raw check in sanitize_post so int fields are always sanitized.

File:
1 edited

Legend:

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

    r11252 r11282  
    798798 * Sanitize every post field.
    799799 *
    800  * If the context is 'raw', then the post object or array will just be returned.
     800 * If the context is 'raw', then the post object or array will get minimal santization of the int fields.
    801801 *
    802802 * @since 2.3.0
     
    808808 */
    809809function sanitize_post($post, $context = 'display') {
    810     if ( 'raw' == $context )
    811         return $post;
    812810    if ( is_object($post) ) {
    813811        if ( !isset($post->ID) )
Note: See TracChangeset for help on using the changeset viewer.