Changeset 47649 for branches/4.8/src/wp-includes/post.php
- Timestamp:
- 04/29/2020 04:18:07 PM (5 years ago)
- Location:
- branches/4.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
- Property svn:mergeinfo changed
/trunk merged: 47633-47635,47637-47638
- Property svn:mergeinfo changed
-
branches/4.8/src/wp-includes/post.php
r43394 r47649 2974 2974 global $wpdb; 2975 2975 2976 // Capture original pre-sanitized array for passing into filters. 2977 $unsanitized_postarr = $postarr; 2978 2976 2979 $user_id = get_current_user_id(); 2977 2980 … … 3270 3273 * 3271 3274 * @since 3.9.0 3275 * @since 5.4.1 `$unsanitized_postarr` argument added. 3272 3276 * 3273 * @param array $data An array of sanitized attachment post data. 3274 * @param array $postarr An array of unsanitized attachment post data. 3277 * @param array $data An array of slashed, sanitized, and processed attachment post data. 3278 * @param array $postarr An array of slashed and sanitized attachment post data, but not processed. 3279 * @param array $unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed attachment post data 3280 * as originally passed to wp_insert_post(). 3275 3281 */ 3276 $data = apply_filters( 'wp_insert_attachment_data', $data, $postarr );3282 $data = apply_filters( 'wp_insert_attachment_data', $data, $postarr, $unsanitized_postarr ); 3277 3283 } else { 3278 3284 /** … … 3280 3286 * 3281 3287 * @since 2.7.0 3288 * @since 5.4.1 `$unsanitized_postarr` argument added. 3282 3289 * 3283 * @param array $data An array of slashed post data. 3284 * @param array $postarr An array of sanitized, but otherwise unmodified post data. 3290 * @param array $data An array of slashed, sanitized, and processed post data. 3291 * @param array $postarr An array of sanitized (and slashed) but otherwise unmodified post data. 3292 * @param array $unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed post data as 3293 * originally passed to wp_insert_post(). 3285 3294 */ 3286 $data = apply_filters( 'wp_insert_post_data', $data, $postarr );3295 $data = apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr ); 3287 3296 } 3288 3297 $data = wp_unslash( $data );
Note: See TracChangeset
for help on using the changeset viewer.