Changeset 47633 for trunk/src/wp-includes/post.php
- Timestamp:
- 04/29/2020 03:12:50 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r47611 r47633 3595 3595 global $wpdb; 3596 3596 3597 // Capture original pre-sanitized array for passing into filters. 3598 $unsanitized_postarr = $postarr; 3599 3597 3600 $user_id = get_current_user_id(); 3598 3601 … … 3919 3922 * 3920 3923 * @since 3.9.0 3924 * @since 5.4.1 `$unsanitized_postarr` argument added. 3921 3925 * 3922 * @param array $data An array of sanitized attachment post data. 3923 * @param array $postarr An array of unsanitized attachment post data. 3926 * @param array $data An array of slashed, sanitized, and processed attachment post data. 3927 * @param array $postarr An array of slashed and sanitized attachment post data, but not processed. 3928 * @param array $unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed attachment post data 3929 * as originally passed to wp_insert_post(). 3924 3930 */ 3925 $data = apply_filters( 'wp_insert_attachment_data', $data, $postarr );3931 $data = apply_filters( 'wp_insert_attachment_data', $data, $postarr, $unsanitized_postarr ); 3926 3932 } else { 3927 3933 /** … … 3929 3935 * 3930 3936 * @since 2.7.0 3937 * @since 5.4.1 `$unsanitized_postarr` argument added. 3931 3938 * 3932 * @param array $data An array of slashed post data. 3933 * @param array $postarr An array of sanitized, but otherwise unmodified post data. 3939 * @param array $data An array of slashed, sanitized, and processed post data. 3940 * @param array $postarr An array of sanitized (and slashed) but otherwise unmodified post data. 3941 * @param array $unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed post data as 3942 * originally passed to wp_insert_post(). 3934 3943 */ 3935 $data = apply_filters( 'wp_insert_post_data', $data, $postarr );3944 $data = apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr ); 3936 3945 } 3937 3946 $data = wp_unslash( $data );
Note: See TracChangeset
for help on using the changeset viewer.