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