# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: /Applications/MAMP/htdocs/wordpress_develop/src/wp-includes
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
|
|
|
2931 | 2931 | |
2932 | 2932 | $postarr = wp_parse_args($postarr, $defaults); |
2933 | 2933 | |
| 2934 | if( ! post_type_exists( $postarr['post_type'] ) ) { |
| 2935 | return new WP_Error( 'invalid_post_type', __( 'Post type does not exist.' ) ); |
| 2936 | } |
| 2937 | |
2934 | 2938 | unset( $postarr[ 'filter' ] ); |
2935 | 2939 | |
2936 | 2940 | $postarr = sanitize_post($postarr, 'db'); |