Making WordPress.org

Changeset 10176

Timestamp:
08/18/2020 05:55:10 AM (4 years ago)
Author:
tellyworth
Message:

Plugin dir: improve block checker handling of json errors.

Links to the json file when displaying an error.

See #5303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-block-plugin-checker.php

    r10174 r10176  
    888888                            // translators: %1$s is the file name, %2$s is the json error message.
    889889                            __( 'Error attempting to parse json in %1$s: %2$s', 'wporg-plugins' ),
    890                             '<code>' . $this->relative_filename( $block_json_file ) . '</code>',
     890                            '<code></code>',
    891891                            $message
    892892                        ),
     
    923923                            __FUNCTION__,
    924924                            ( 'error' === $code ? 'warning' : $code ), // TODO: be smarter about mapping these
    925                             '<code>' . $this->relative_filename( $block_json_file ) . '</code>: ' . $message,
     925                            '<code></code>: ' . $message,
    926926                            array(
    927927                                $this->relative_filename( $block_json_file ),
Note: See TracChangeset for help on using the changeset viewer.