Make WordPress Core

Changeset 20234


Ignore:
Timestamp:
03/21/2012 03:04:00 PM (12 years ago)
Author:
duck_
Message:

Pass post_type through sanitize_key() instead of sanitize_user(). Fixes #20202.

For consistency with the registration API and because it does less work.

File:
1 edited

Legend:

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

    r19712 r20234  
    8080
    8181// Keys
    82 foreach ( array( 'pre_post_type' ) as $filter ) {
    83     add_filter( $filter, 'sanitize_user' );
    84 }
    85 foreach ( array( 'pre_post_status', 'pre_post_comment_status', 'pre_post_ping_status' ) as $filter ) {
     82foreach ( array( 'pre_post_type', 'pre_post_status', 'pre_post_comment_status', 'pre_post_ping_status' ) as $filter ) {
    8683    add_filter( $filter, 'sanitize_key' );
    8784}
Note: See TracChangeset for help on using the changeset viewer.