Changeset 53877 for trunk/src/wp-includes/revision.php
- Timestamp:
- 08/11/2022 02:01:35 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/revision.php
r53842 r53877 18 18 * for insertion as a post revision. Default empty array. 19 19 * @param bool $deprecated Not used. 20 * @return arrayArray of fields that can be versioned.20 * @return string[] Array of fields that can be versioned. 21 21 */ 22 22 function _wp_post_revision_fields( $post = array(), $deprecated = false ) { … … 48 48 * @since 4.5.0 The `$post` parameter was added. 49 49 * 50 * @param array$fields List of fields to revision. Contains 'post_title',51 * 'post_content', and 'post_excerpt' by default.52 * @param array $post A post array being processed for insertion as a post revision.50 * @param string[] $fields List of fields to revision. Contains 'post_title', 51 * 'post_content', and 'post_excerpt' by default. 52 * @param array $post A post array being processed for insertion as a post revision. 53 53 */ 54 54 $fields = apply_filters( '_wp_post_revision_fields', $fields, $post ); … … 490 490 * @param int|WP_Post $post Optional. Post ID or WP_Post object. Default is global `$post`. 491 491 * @param array|null $args Optional. Arguments for retrieving post revisions. Default null. 492 * @return array An array of revisions, or an empty array if none.492 * @return WP_Post[]|int[] Array of revision objects or IDs, or an empty array if none. 493 493 */ 494 494 function wp_get_post_revisions( $post = 0, $args = null ) {
Note: See TracChangeset
for help on using the changeset viewer.