Make WordPress Core

Changeset 17406


Ignore:
Timestamp:
02/06/2011 06:38:41 PM (14 years ago)
Author:
ryan
Message:

Run sanitize_key() on post_status, comment_status, and ping_status on the way into the DB. Props duck_. For 3.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-includes/default-filters.php

    r17400 r17406  
    7373foreach ( array( 'pre_post_type' ) as $filter ) {
    7474    add_filter( $filter, 'sanitize_user' );
     75}
     76foreach ( array( 'pre_post_status', 'pre_post_comment_status', 'pre_post_ping_status' ) as $filter ) {
     77    add_filter( $filter, 'sanitize_key' );
    7578}
    7679
Note: See TracChangeset for help on using the changeset viewer.