Make WordPress Core


Ignore:
Timestamp:
04/27/2018 05:30:28 PM (7 years ago)
Author:
azaozz
Message:

Privacy: update and enhance the method to confirm user requests by email. Introduce WP_User_Request to hold all request vars similarly to WP_Post.

Props mikejolley.
See #43443.

File:
1 edited

Legend:

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

    r43008 r43011  
    39813981 */
    39823982function wp_unique_post_slug( $slug, $post_ID, $post_status, $post_type, $post_parent ) {
    3983     if ( in_array( $post_status, array( 'draft', 'pending', 'auto-draft' ) ) || ( 'inherit' == $post_status && 'revision' == $post_type ) ) {
     3983    if ( in_array( $post_status, array( 'draft', 'pending', 'auto-draft' ) ) || ( 'inherit' == $post_status && 'revision' == $post_type ) || 'user_request' === $post_type ) {
    39843984        return $slug;
    39853985    }
Note: See TracChangeset for help on using the changeset viewer.