Making WordPress.org


Ignore:
Timestamp:
07/03/2020 07:26:05 AM (6 years ago)
Author:
tellyworth
Message:

Plugin directory: add a pass/fail message to the block validator.

See #5303

File:
1 edited

Legend:

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

    r10007 r10011  
    7070                $output = '';
    7171
     72                if ( empty( $results_by_type['error'] ) ) {
     73                        $output .= '<h3>' . __( 'Success', 'wporg-plugins' ) . '</h3>';
     74                        $output .= "<div class='notice notice-success notice-alt'>\n";
     75                        $output .= __( 'No problems were found. Your plugin has passed the first step towards being included in the Block Directory.', 'wporg-plugins' );
     76                        $output .= "</div>\n";
     77                } else {
     78                        $output .= '<h3>' . __( 'Problems were encountered', 'wporg-plugins' ) . '</h3>';
     79                        $output .= "<div class='notice notice-error notice-alt'>\n";
     80                        $output .= __( 'Some problems were found. They need to be addressed before your plugin will work in the Block Directory.', 'wporg-plugins' );
     81                        $output .= "</div>\n";
     82                }
     83
    7284                $error_types = array(
    7385                        'error'   => __( 'Fatal Errors:', 'wporg-plugins' ),
Note: See TracChangeset for help on using the changeset viewer.