WordPress.org

Make WordPress Core

Ticket #20202: 20202.diff

File 20202.diff, 611 bytes (added by duck_, 6 years ago)
  • wp-includes/default-filters.php

     
    7979}
    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}
    8885