Make WordPress Core

Ticket #40145: 40145.patch

File 40145.patch, 490 bytes (added by Mista-Flo, 5 years ago)

First patch

  • wp-includes/post.php

    diff --git a/wp-includes/post.php b/wp-includes/post.php
    index ac29d9628f..476f284f63 100644
    a b function wp_trash_post( $post_id = 0 ) { 
    29792979         */
    29802980        do_action( 'wp_trash_post', $post_id );
    29812981
     2982        if ( wp_is_post_revision( $post_id ) ) {
     2983                return wp_delete_post( $post_id, true );
     2984        }
     2985
    29822986        add_post_meta( $post_id, '_wp_trash_meta_status', $post->post_status );
    29832987        add_post_meta( $post_id, '_wp_trash_meta_time', time() );
    29842988