Changeset 8847 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-markdown/inc/class-importer.php
- Timestamp:
- 05/21/2019 08:59:57 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-markdown/inc/class-importer.php
r8846 r8847 124 124 WP_CLI::error( 'Invalid manifest' ); 125 125 } 126 return new WP_Error( 'invalid-manifest', 'Manifest did not unfurl properly.' ); ;126 return new WP_Error( 'invalid-manifest', 'Manifest did not unfurl properly.' ); 127 127 } 128 128 … … 163 163 // Already exists, update. 164 164 $existing = $this->existing[ $key ] ?? $this->existing['slug_only'][ $key ] ?? false; 165 if ( ! $existing && 'index' === $key ) { 166 $key = $this->get_post_type(); 167 $existing = $this->existing[ $key ] ?? $this->existing['slug_only'][ $key ] ?? false; 168 } 165 169 if ( $existing ) { 166 170 $existing_id = $existing['post_id'];
Note: See TracChangeset
for help on using the changeset viewer.