We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27693bf commit c5b4534Copy full SHA for c5b4534
frontend/controller/posts.php
@@ -403,9 +403,7 @@ function fed_process_dashboard_add_new_post( $post ) {
403
}
404
405
foreach ( $extras as $index => $extra ) {
406
- if ( isset( $post[ $index ] ) ) {
407
- $default['meta_input'][ $index ] = sanitize_text_field( $post[ $index ] );
408
- }
+ $default['meta_input'][ $index ] = isset( $post[ $index ] ) ? sanitize_text_field( $post[ $index ] ) : '';
409
410
411
$success = wp_insert_post( $default );
0 commit comments