Changeset 47647 for branches/5.0/src/wp-includes/post.php
- Timestamp:
- 04/29/2020 04:13:02 PM (6 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/post.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
- Property svn:mergeinfo changed
/trunk merged: 47633-47638
- Property svn:mergeinfo changed
-
branches/5.0/src/wp-includes/post.php
r43849 r47647 3204 3204 global $wpdb; 3205 3205 3206 // Capture original pre-sanitized array for passing into filters. 3207 $unsanitized_postarr = $postarr; 3208 3206 3209 $user_id = get_current_user_id(); 3207 3210 … … 3507 3510 * 3508 3511 * @since 3.9.0 3512 * @since 5.4.1 `$unsanitized_postarr` argument added. 3509 3513 * 3510 * @param array $data An array of sanitized attachment post data. 3511 * @param array $postarr An array of unsanitized attachment post data. 3514 * @param array $data An array of slashed, sanitized, and processed attachment post data. 3515 * @param array $postarr An array of slashed and sanitized attachment post data, but not processed. 3516 * @param array $unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed attachment post data 3517 * as originally passed to wp_insert_post(). 3512 3518 */ 3513 $data = apply_filters( 'wp_insert_attachment_data', $data, $postarr );3519 $data = apply_filters( 'wp_insert_attachment_data', $data, $postarr, $unsanitized_postarr ); 3514 3520 } else { 3515 3521 /** … … 3517 3523 * 3518 3524 * @since 2.7.0 3525 * @since 5.4.1 `$unsanitized_postarr` argument added. 3519 3526 * 3520 * @param array $data An array of slashed post data. 3521 * @param array $postarr An array of sanitized, but otherwise unmodified post data. 3527 * @param array $data An array of slashed, sanitized, and processed post data. 3528 * @param array $postarr An array of sanitized (and slashed) but otherwise unmodified post data. 3529 * @param array $unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed post data as 3530 * originally passed to wp_insert_post(). 3522 3531 */ 3523 $data = apply_filters( 'wp_insert_post_data', $data, $postarr );3532 $data = apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr ); 3524 3533 } 3525 3534 $data = wp_unslash( $data );
Note: See TracChangeset
for help on using the changeset viewer.