WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/02/2018 01:03:53 AM (2 years ago)
Author:
SergeyBiryukov
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, desrosj.
Merges [43011] and [43014] to the 4.9 branch.
See #43443.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/post.php

    r43083 r43084  
    38013801 */
    38023802function wp_unique_post_slug( $slug, $post_ID, $post_status, $post_type, $post_parent ) {
    3803     if ( in_array( $post_status, array( 'draft', 'pending', 'auto-draft' ) ) || ( 'inherit' == $post_status && 'revision' == $post_type ) )
     3803    if ( in_array( $post_status, array( 'draft', 'pending', 'auto-draft' ) ) || ( 'inherit' == $post_status && 'revision' == $post_type ) || 'user_request' === $post_type )
    38043804        return $slug;
    38053805
Note: See TracChangeset for help on using the changeset viewer.