Changeset 8680 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-markdown/inc/class-importer.php
- Timestamp:
- 04/25/2019 06:31:36 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-markdown/inc/class-importer.php
r8679 r8680 372 372 'post_excerpt' => sanitize_text_field( wp_slash( $excerpt ) ), 373 373 ); 374 if ( ! is_null( $title ) ) { 374 // If no title was extracted from markdown doc, use the value defined in manifest. 375 if ( is_null( $title ) ) { 376 $markdown_entry = get_post_meta( $post_id, $this->manifest_entry_meta_key, true ); 377 if ( ! empty( $markdown_entry['title'] ) ) { 378 $post_data['post_title'] = sanitize_text_field( wp_slash( $markdown_entry['title'] ) ); 379 } 380 } else { 375 381 $post_data['post_title'] = sanitize_text_field( wp_slash( $title ) ); 376 382 } 383 377 384 wp_update_post( $post_data ); 378 385
Note: See TracChangeset
for help on using the changeset viewer.