Changeset 5331 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-readme-validator.php
- Timestamp:
- 04/14/2017 07:28:11 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-readme-validator.php
r4262 r5331 53 53 } 54 54 55 $output = ''; 56 55 57 $error_types = array( 56 58 'errors' => __( 'Fatal Errors:', 'wporg-plugins' ), … … 60 62 foreach ( $error_types as $field => $warning_label ) { 61 63 if ( !empty( $errors[ $field ] ) ) { 62 echo"{$warning_label}\n<ul class='{$field} error'>\n";64 $output .= "{$warning_label}\n<ul class='{$field} error'>\n"; 63 65 foreach ( $errors[ $field ] as $notice ) { 64 echo"<li>{$notice}</li>\n";66 $output .= "<li>{$notice}</li>\n"; 65 67 } 66 echo"</ul>\n";68 $output .= "</ul>\n"; 67 69 } 68 70 } 71 72 if ( empty( $output ) ) { 73 $output = __( 'No errors detected in the readme.txt file.', 'wporg-plugins' ); 74 } 75 76 echo $output; 69 77 } 70 78 }
Note: See TracChangeset
for help on using the changeset viewer.