Changeset 47646 for branches/5.1/src/wp-includes/post.php
- Timestamp:
- 04/29/2020 04:06:55 PM (5 years ago)
- Location:
- branches/5.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.1
- Property svn:mergeinfo changed
/trunk merged: 47633-47638
- Property svn:mergeinfo changed
-
branches/5.1/src/wp-includes/post.php
r44687 r47646 3386 3386 global $wpdb; 3387 3387 3388 // Capture original pre-sanitized array for passing into filters. 3389 $unsanitized_postarr = $postarr; 3390 3388 3391 $user_id = get_current_user_id(); 3389 3392 … … 3697 3700 * 3698 3701 * @since 3.9.0 3702 * @since 5.4.1 `$unsanitized_postarr` argument added. 3699 3703 * 3700 * @param array $data An array of sanitized attachment post data. 3701 * @param array $postarr An array of unsanitized attachment post data. 3704 * @param array $data An array of slashed, sanitized, and processed attachment post data. 3705 * @param array $postarr An array of slashed and sanitized attachment post data, but not processed. 3706 * @param array $unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed attachment post data 3707 * as originally passed to wp_insert_post(). 3702 3708 */ 3703 $data = apply_filters( 'wp_insert_attachment_data', $data, $postarr );3709 $data = apply_filters( 'wp_insert_attachment_data', $data, $postarr, $unsanitized_postarr ); 3704 3710 } else { 3705 3711 /** … … 3707 3713 * 3708 3714 * @since 2.7.0 3715 * @since 5.4.1 `$unsanitized_postarr` argument added. 3709 3716 * 3710 * @param array $data An array of slashed post data. 3711 * @param array $postarr An array of sanitized, but otherwise unmodified post data. 3717 * @param array $data An array of slashed, sanitized, and processed post data. 3718 * @param array $postarr An array of sanitized (and slashed) but otherwise unmodified post data. 3719 * @param array $unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed post data as 3720 * originally passed to wp_insert_post(). 3712 3721 */ 3713 $data = apply_filters( 'wp_insert_post_data', $data, $postarr );3722 $data = apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr ); 3714 3723 } 3715 3724 $data = wp_unslash( $data );
Note: See TracChangeset
for help on using the changeset viewer.