WordPress.org

Making WordPress.org

Changeset 8719


Ignore:
Timestamp:
05/02/2019 07:47:35 AM (3 years ago)
Author:
coffee2code
Message:

Markdown Importer: Store post's manifest entry during update_post_from_manifest_doc() earlier.

Previously, the entry was only being updated if the markdown source had changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-markdown/inc/class-importer.php

    r8680 r8719  
    247247     */
    248248    protected function update_post_from_manifest_doc( $post_id, $doc ) {
     249        update_post_meta( $post_id, $this->manifest_entry_meta_key, $doc );
     250
    249251        $did_update = update_post_meta( $post_id, $this->meta_key, esc_url_raw( $doc['markdown_source'] ) );
    250252        if ( ! $did_update ) {
    251253            return false;
    252254        }
    253 
    254         update_post_meta( $post_id, $this->manifest_entry_meta_key, $doc );
    255255
    256256        if ( isset( $doc['meta'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.