Ticket #42030: 42030.patch
| File 42030.patch, 620 bytes (added by , 9 years ago) |
|---|
-
wp-includes/post.php
2596 2596 return false; 2597 2597 2598 2598 /** 2599 * Filters whether trashing a post should take place. 2600 * 2601 * @since 4.8.2 2602 * 2603 * @param bool $trash Whether to go forward with trashing. 2604 * @param WP_Post $post Post object. 2605 */ 2606 $check = apply_filters( 'pre_trash_post', null, $post ); 2607 if ( null !== $check ) { 2608 return $check; 2609 } 2610 2611 /** 2599 2612 * Fires before a post is sent to the trash. 2600 2613 * 2601 2614 * @since 3.3.0