diff --git wp-includes/post.php wp-includes/post.php
index 1dbf0c9..67f1f73 100644
|
|
function wp_insert_post( $postarr, $wp_error = false ) { |
3068 | 3068 | |
3069 | 3069 | $postarr = wp_parse_args($postarr, $defaults); |
3070 | 3070 | |
| 3071 | /** |
| 3072 | * Hooks in before insert post is properly run. |
| 3073 | * |
| 3074 | * @since 4.9 |
| 3075 | * |
| 3076 | * @param array $postarr An array of raw post data. |
| 3077 | */ |
| 3078 | do_action( 'pre_insert_post', $postarr ); |
| 3079 | |
3071 | 3080 | unset( $postarr[ 'filter' ] ); |
3072 | 3081 | |
3073 | 3082 | $postarr = sanitize_post($postarr, 'db'); |