Making WordPress.org

Changeset 13090


Ignore:
Timestamp:
01/05/2024 03:38:40 AM (2 years ago)
Author:
dd32
Message:

Markdown Importer: Include the ID of the page for errors.

File:
1 edited

Legend:

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

    r13089 r13090  
    312312            if ( class_exists( 'WP_CLI' ) ) {
    313313                if ( is_wp_error( $ret ) ) {
    314                     WP_CLI::warning( $ret->get_error_message() );
     314                    WP_CLI::warning( "{$id} returned an error: " . $ret->get_error_message() );
    315315                } elseif ( false === $ret ) {
    316316                    WP_CLI::log( "No updates for {$id}" );
     
    398398
    399399        // Check to see if this differs from the actual post.
    400         if ( $post_data ) {
     400        if ( $do_update && $post_data ) {
    401401            $post = get_post( $post_id );
    402402            foreach ( $post_data as $field => $value ) {
Note: See TracChangeset for help on using the changeset viewer.