WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/20/2010 03:28:58 PM (9 years ago)
Author:
ryan
Message:

Simplify sanitize_key() and use it in more places. see #14910

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r15590 r15635  
    572572    $args = (object) $args;
    573573
    574     $post_status = sanitize_user($post_status, true);
     574    $post_status = sanitize_key($post_status);
    575575    $args->name = $post_status;
    576576
     
    820820    $args = (object) $args;
    821821
    822     $post_type = sanitize_user($post_type, true);
     822    $post_type = sanitize_key($post_type);
    823823    $args->name = $post_type;
    824824
Note: See TracChangeset for help on using the changeset viewer.