Changeset 47648 for branches/4.9/src/wp-includes/post.php
- Timestamp:
- 04/29/2020 04:15:39 PM (3 years ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
- Property svn:mergeinfo changed
/trunk merged: 47633-47635,47637-47638
- Property svn:mergeinfo changed
-
branches/4.9/src/wp-includes/post.php
r43707 r47648 3137 3137 global $wpdb; 3138 3138 3139 // Capture original pre-sanitized array for passing into filters. 3140 $unsanitized_postarr = $postarr; 3141 3139 3142 $user_id = get_current_user_id(); 3140 3143 … … 3433 3436 * 3434 3437 * @since 3.9.0 3438 * @since 5.4.1 `$unsanitized_postarr` argument added. 3435 3439 * 3436 * @param array $data An array of sanitized attachment post data. 3437 * @param array $postarr An array of unsanitized attachment post data. 3440 * @param array $data An array of slashed, sanitized, and processed attachment post data. 3441 * @param array $postarr An array of slashed and sanitized attachment post data, but not processed. 3442 * @param array $unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed attachment post data 3443 * as originally passed to wp_insert_post(). 3438 3444 */ 3439 $data = apply_filters( 'wp_insert_attachment_data', $data, $postarr );3445 $data = apply_filters( 'wp_insert_attachment_data', $data, $postarr, $unsanitized_postarr ); 3440 3446 } else { 3441 3447 /** … … 3443 3449 * 3444 3450 * @since 2.7.0 3451 * @since 5.4.1 `$unsanitized_postarr` argument added. 3445 3452 * 3446 * @param array $data An array of slashed post data. 3447 * @param array $postarr An array of sanitized, but otherwise unmodified post data. 3453 * @param array $data An array of slashed, sanitized, and processed post data. 3454 * @param array $postarr An array of sanitized (and slashed) but otherwise unmodified post data. 3455 * @param array $unsanitized_postarr An array of slashed yet *unsanitized* and unprocessed post data as 3456 * originally passed to wp_insert_post(). 3448 3457 */ 3449 $data = apply_filters( 'wp_insert_post_data', $data, $postarr );3458 $data = apply_filters( 'wp_insert_post_data', $data, $postarr, $unsanitized_postarr ); 3450 3459 } 3451 3460 $data = wp_unslash( $data );
Note: See TracChangeset
for help on using the changeset viewer.