WordPress.org

Make WordPress Core

Ticket #5302: 5302.diff

File 5302.diff, 515 bytes (added by DD32, 7 years ago)

fix typo

  • wp-includes/post.php

     
    13061306 
    13071307        if ( empty($post_name) ) { 
    13081308                $post_name = sanitize_title($post_title, $post_ID); 
    1309                 $wpdb->update( $wpdb->posts, compact( $post_name ), array( 'ID' => $post_ID ) ); 
     1309                $wpdb->update( $wpdb->posts, compact("post_name"), array( 'ID' => $post_ID ) ); 
    13101310        } 
    13111311 
    13121312        wp_set_post_categories($post_ID, $post_category);