WordPress.org

Make WordPress Core

Changeset 17405


Ignore:
Timestamp:
02/06/2011 06:37:58 PM (10 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.1

File:
1 edited

Legend:

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

    r17192 r17405  
    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.