WordPress.org

Make WordPress Core

Changeset 6322


Ignore:
Timestamp:
11/07/07 06:28:46 (6 years ago)
Author:
ryan
Message:

Skip sanitization altogether for raw context. Props Quandary. fixes #5325 for 2.3

Location:
branches/2.3/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/wp-includes/post.php

    r6205 r6322  
    429429 
    430430function sanitize_post($post, $context = 'display') { 
     431 
     432    if ( 'raw' == $context ) 
     433        return $post; 
     434 
    431435    // TODO: Use array keys instead of hard coded list 
    432436    $fields = array('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_content_filtered', 'post_title', 'post_excerpt', 'post_status', 'post_type', 'comment_status', 'ping_status', 'post_password', 'post_name', 'to_ping', 'pinged', 'post_date', 'post_date_gmt', 'post_parent', 'menu_order', 'post_mime_type', 'post_category'); 
  • branches/2.3/wp-includes/taxonomy.php

    r6253 r6322  
    664664 */ 
    665665function sanitize_term($term, $taxonomy, $context = 'display') { 
     666 
     667    if ( 'raw' == $context ) 
     668        return $term; 
     669 
    666670    $fields = array('term_id', 'name', 'description', 'slug', 'count', 'parent', 'term_group'); 
    667671 
Note: See TracChangeset for help on using the changeset viewer.