Changeset 47644 for branches/5.3/src/wp-includes/post.php
- Timestamp:
- 04/29/2020 04:04:20 PM (5 years ago)
- Location:
- branches/5.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.3
- Property svn:mergeinfo changed
/trunk merged: 47633-47638
- Property svn:mergeinfo changed
-
branches/5.3/src/wp-includes/post.php
r46977 r47644 3555 3555 global $wpdb; 3556 3556 3557 // Capture original pre-sanitized array for passing into filters. 3558 $unsanitized_postarr = $postarr; 3559 3557 3560 $user_id = get_current_user_id(); 3558 3561 … … 3866 3869 * 3867 3870 * @since 3.9.0 3871 * @since 5.4.1 `$unsanitized_postarr` argument added. 3868 3872 * 3869 * @param array $data An array of sanitized attachment post data. 3870 * @param array $postarr An array of unsanitized attachment post data. 3873 * @param array $data An array of slashed, sanitized, and processed attachment post data. 3874 * @param array $postarr An array of slashed and sanitized attachment post data, but not processed. 3875 * @param array $unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed attachment post data 3876 * as originally passed to wp_insert_post(). 3871 3877 */ 3872 $data = apply_filters( 'wp_insert_attachment_data', $data, $postarr );3878 $data = apply_filters( 'wp_insert_attachment_data', $data, $postarr, $unsanitized_postarr ); 3873 3879 } else { 3874 3880 /** … … 3876 3882 * 3877 3883 * @since 2.7.0 3884 * @since 5.4.1 `$unsanitized_postarr` argument added. 3878 3885 * 3879 * @param array $data An array of slashed post data. 3880 * @param array $postarr An array of sanitized, but otherwise unmodified post data. 3886 * @param array $data An array of slashed, sanitized, and processed post data. 3887 * @param array $postarr An array of sanitized (and slashed) but otherwise unmodified post data. 3888 * @param array $unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed post data as 3889 * originally passed to wp_insert_post(). 3881 3890 */ 3882 $data = apply_filters( 'wp_insert_post_data', $data, $postarr );3891 $data = apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr ); 3883 3892 } 3884 3893 $data = wp_unslash( $data );
Note: See TracChangeset
for help on using the changeset viewer.