WordPress.org

Make WordPress Core

Ticket #12947: post-slug-reset.diff

File post-slug-reset.diff, 478 bytes (added by nprasath002, 4 years ago)
  • (a) Base vs. (b) Locally

    # This patch file was generated by NetBeans IDE
    # It uses platform neutral UTF-8 encoding and \n newlines.
    a b  
    24622462                extract($postdata, EXTR_SKIP); 
    24632463 
    24642464                // Let WordPress manage slug if none was provided. 
    2465                 $post_name = ""; 
    2466  No newline at end of file 
     2465                $post_name = $postdata['post_name']; 
     2466 No newline at end of file 
    24672467                if ( isset($content_struct["wp_slug"]) ) 
    24682468                        $post_name = $content_struct["wp_slug"];