diff --git wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-readme-validator.php wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-readme-validator.php
index aae0417cb..c9e78d8c0 100644
|
|
|
class Readme_Validator { |
| 11 | 11 | public static function display() { |
| 12 | 12 | ?> |
| 13 | 13 | <div class="wrap"> |
| 14 | | <h2><?php _e( 'WordPress Plugin readme.txt Validator', 'wporg-plugins' ); ?></h2> |
| 15 | | |
| 16 | 14 | <?php |
| 17 | 15 | if ( $_POST ) { |
| 18 | 16 | self::validate_readme(); |
| … |
… |
class Readme_Validator { |
| 76 | 74 | ); |
| 77 | 75 | foreach ( $error_types as $field => $warning_label ) { |
| 78 | 76 | if ( ! empty( $errors[ $field ] ) ) { |
| 79 | | $output .= "{$warning_label}\n<ul class='{$field} error'>\n"; |
| | 77 | if ( 'errors' === $field ) { |
| | 78 | $class = 'error'; |
| | 79 | } elseif ( 'warnings' === $field ) { |
| | 80 | $class = 'warning'; |
| | 81 | } else { |
| | 82 | $class = 'info'; |
| | 83 | } |
| | 84 | |
| | 85 | $output .= "<h3>{$warning_label}</h3>\n"; |
| | 86 | $output .= "<div class='notice notice-{$class} notice-alt'>\n"; |
| | 87 | $output .= "<ul class='{$field}'>\n"; |
| 80 | 88 | foreach ( $errors[ $field ] as $notice ) { |
| 81 | 89 | $output .= "<li>{$notice}</li>\n"; |
| 82 | 90 | } |
| 83 | 91 | $output .= "</ul>\n"; |
| | 92 | $output .= "</div>\n"; |
| 84 | 93 | } |
| 85 | 94 | } |
| 86 | 95 | |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/styles/objects/_notices.scss wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/styles/objects/_notices.scss
index d7b40f316..28291c832 100644
|
|
|
|
| 11 | 11 | padding: 2px; |
| 12 | 12 | } |
| 13 | 13 | |
| | 14 | ul { |
| | 15 | list-style: none; |
| | 16 | margin: 0.5em; |
| | 17 | } |
| | 18 | |
| 14 | 19 | &.notice-alt { |
| 15 | 20 | box-shadow: none; |
| 16 | 21 | } |
| … |
… |
|
| 50 | 55 | &.notice-info.notice-alt { |
| 51 | 56 | background-color: #e5f5fa; |
| 52 | 57 | } |
| 53 | | } |
| 54 | | No newline at end of file |
| | 58 | } |