Make WordPress Core

Changeset 17404


Ignore:
Timestamp:
02/06/2011 06:37:20 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 trunk

File:
1 edited

Legend:

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

    r17192 r17404  
    8181foreach ( array( 'pre_post_type' ) as $filter ) {
    8282    add_filter( $filter, 'sanitize_user' );
     83}
     84foreach ( array( 'pre_post_status', 'pre_post_comment_status', 'pre_post_ping_status' ) as $filter ) {
     85    add_filter( $filter, 'sanitize_key' );
    8386}
    8487
Note: See TracChangeset for help on using the changeset viewer.