Changeset 52691 for trunk/src/wp-includes/post.php
- Timestamp:
- 02/08/2022 12:22:29 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r52670 r52691 4365 4365 * 4366 4366 * @since 3.9.0 4367 * @since 5.4.1 `$unsanitized_postarr` argument added. 4367 * @since 5.4.1 The `$unsanitized_postarr` parameter was added. 4368 * @since 6.0.0 The `$update` parameter was added. 4368 4369 * 4369 4370 * @param array $data An array of slashed, sanitized, and processed attachment post data. … … 4371 4372 * @param array $unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed attachment post data 4372 4373 * as originally passed to wp_insert_post(). 4374 * @param bool $update Whether this is an existing attachment post being updated. 4373 4375 */ 4374 $data = apply_filters( 'wp_insert_attachment_data', $data, $postarr, $unsanitized_postarr );4376 $data = apply_filters( 'wp_insert_attachment_data', $data, $postarr, $unsanitized_postarr, $update ); 4375 4377 } else { 4376 4378 /** … … 4378 4380 * 4379 4381 * @since 2.7.0 4380 * @since 5.4.1 `$unsanitized_postarr` argument added. 4382 * @since 5.4.1 The `$unsanitized_postarr` parameter was added. 4383 * @since 6.0.0 The `$update` parameter was added. 4381 4384 * 4382 4385 * @param array $data An array of slashed, sanitized, and processed post data. … … 4384 4387 * @param array $unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed post data as 4385 4388 * originally passed to wp_insert_post(). 4389 * @param bool $update Whether this is an existing post being updated. 4386 4390 */ 4387 $data = apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr );4391 $data = apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr, $update ); 4388 4392 } 4389 4393
Note: See TracChangeset
for help on using the changeset viewer.