WordPress.org

Make WordPress Core

Ticket #11863: 11863.13.diff

File 11863.13.diff, 757 bytes (added by netweb, 4 years ago)
  • src/wp-includes/post.php

     
    61266126
    61276127        $post = get_post( $post );
    61286128
    6129         if ( strpos( $post->post_name, '-%trashed%' ) ) {
     6129        if ( strpos( $post->post_name, '-_trashed' ) ) {
    61306130                return $post->post_name;
    61316131        }
    61326132        add_post_meta( $post->ID, '_wp_desired_post_slug', $post->post_name );
    6133         $post_name = _truncate_post_slug( $post->post_name, 190 ) . '-%trashed%';
     6133        $post_name = _truncate_post_slug( $post->post_name, 190 ) . '-_trashed';
    61346134        $wpdb->update( $wpdb->posts, array( 'post_name' => $post_name ), array( 'ID' => $post->ID ) );
    61356135        clean_post_cache( $post->ID );
    61366136        return $post_name;