Changeset 50949 for trunk/src/wp-includes/revision.php
- Timestamp:
- 05/21/2021 03:28:39 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/revision.php
r50558 r50949 565 565 * @param WP_Post $post Post object. 566 566 */ 567 return (int) apply_filters( 'wp_revisions_to_keep', $num, $post ); 567 $num = apply_filters( 'wp_revisions_to_keep', $num, $post ); 568 569 /** 570 * Filters the number of revisions to save for the given post by its post type. 571 * 572 * Overrides both the value of WP_POST_REVISIONS and the {@see 'wp_revisions_to_keep'} filter. 573 * 574 * The dynamic portion of the hook name, `$post->post_type`, refers to 575 * the post type slug. 576 * 577 * @since 5.8.0 578 * 579 * @param int $num Number of revisions to store. 580 * @param WP_Post $post Post object. 581 */ 582 $num = apply_filters( "wp_{$post->post_type}_revisions_to_keep", $num, $post ); 583 584 return (int) $num; 568 585 } 569 586
Note: See TracChangeset
for help on using the changeset viewer.