Changeset 3452
- Timestamp:
- 06/19/2016 09:03:37 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-readme-validator.php
r3450 r3452 76 76 $warnings = array(); 77 77 $notes = array(); 78 78 79 if ( ! empty( $_REQUEST['readme_url'] ) ) { 79 80 $url = esc_url_raw( $_REQUEST['readme_url'] ); … … 109 110 110 111 // Warnings. 111 if ( empty( $readme->requires _at_least) ) {112 if ( empty( $readme->requires ) ) { 112 113 /* Translators: Plugin header tag; */ 113 114 $warnings[] = sprintf( __( '%s is missing.', 'wporg-plugins' ), '<code>Requires at least</code>' ); 114 115 } 115 if ( empty( $readme->tested _up_to) ) {116 if ( empty( $readme->tested ) ) { 116 117 /* Translators: Plugin header tag; */ 117 118 $warnings[] = sprintf( __( '%s is missing.', 'wporg-plugins' ), '<code>Tested up to</code>' ); … … 124 125 /* Translators: Plugin header tag; */ 125 126 $warnings[] = sprintf( __( 'No %s listed.', 'wporg-plugins' ), '<code>Contributors</code>' ); 126 }127 if ( ! count( $readme->tags ) ) {128 /* Translators: Plugin header tag; */129 $warnings[] = sprintf( __( 'No %s specified', 'wporg-plugins' ), '<code>Tags</code>' );130 }131 if ( ! empty( $readme->is_excerpt ) ) {132 /* Translators: Plugin header tag; */133 $warnings[] = sprintf( __( 'No %s section was found... your short description section will be used instead.', 'wporg-plugins' ), '<code>== Description ==</code>' );134 }135 if ( ! empty( $readme->is_truncated ) ) {136 $warnings[] = __( 'Your short description exceeds the 150 character limit.', 'wporg-plugins' );137 127 } 138 128 … … 149 139 150 140 // Notes. 151 if ( empty( $readme->license ) ) {152 /* Translators: Plugin header tag; */153 $notes[] = sprintf( __( 'No %s is specified. WordPress is licensed under “GPLv2 or later”', 'wporg-plugins' ), '<code>License</code>' );154 }155 if ( empty( $readme->sections['installation'] ) ) {156 /* Translators: Plugin header tag; */157 $notes[] = sprintf( __( 'No %s section was found', 'wporg-plugins' ), '<code>== Installation ==</code>' );158 }159 141 if ( empty( $readme->sections['frequently_asked_questions'] ) ) { 160 142 /* Translators: Plugin header tag; */
Note: See TracChangeset
for help on using the changeset viewer.