Making WordPress.org

Changeset 8788


Ignore:
Timestamp:
05/14/2019 12:11:41 AM (7 years ago)
Author:
dd32
Message:

Markdown Importer: Wrap a WP_CLI call with a class_exists, causing the job to fail.

See [8786].
See #4388.

File:
1 edited

Legend:

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

    r8787 r8788  
    369369                        $post_data['ID'] = $post_id;
    370370
    371                         WP_CLI::log( "Updated {$post_id} from manifest source" );
     371                        if ( class_exists( 'WP_CLI' ) ) {
     372                                WP_CLI::log( "Updated {$post_id} from manifest source" );
     373                        }
    372374                        wp_update_post( $post_data );
    373375                }
Note: See TracChangeset for help on using the changeset viewer.