Changeset 9050 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-validator.php
- Timestamp:
- 07/16/2019 05:55:10 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-validator.php
r8469 r9050 86 86 '<code>' . number_format( $latest_wordpress_version - 0.1, 1 ) . '</code>' 87 87 ); 88 } elseif ( empty( $readme->requires ) ) {89 $warnings[] = sprintf(90 /* translators: %s: plugin header tag */91 __( 'The %s field is missing.', 'wporg-plugins' ),92 '<code>Requires at least</code>'93 );94 88 } 95 89 … … 120 114 '<code>7.0</code>' 121 115 ); 122 } elseif ( empty( $readme->requires_php ) ) {123 $warnings[] = sprintf(124 /* translators: %s: plugin header tag */125 __( 'The %s field is missing.', 'wporg-plugins' ),126 '<code>Requires PHP</code>'127 );128 116 } 117 129 118 if ( empty( $readme->stable_tag ) ) { 130 119 $warnings[] = sprintf( … … 152 141 153 142 // Notes. 143 if ( empty( $readme->requires ) ) { 144 $notes[] = sprintf( 145 /* translators: %s: plugin header tag */ 146 __( 'The %s field is missing. It should be defined here, or in your main plugin file.', 'wporg-plugins' ), 147 '<code>Requires at least</code>' 148 ); 149 } 150 151 if ( empty( $readme->requires_php ) ) { 152 $notes[] = sprintf( 153 /* translators: %s: plugin header tag */ 154 __( 'The %s field is missing. It should be defined here, or in your main plugin file.', 'wporg-plugins' ), 155 '<code>Requires PHP</code>' 156 ); 157 } 158 154 159 if ( empty( $readme->sections['faq'] ) ) { 155 160 $notes[] = sprintf( … … 159 164 ); 160 165 } 166 161 167 if ( empty( $readme->sections['changelog'] ) ) { 162 168 $notes[] = sprintf( … … 166 172 ); 167 173 } 174 168 175 if ( empty( $readme->upgrade_notice ) ) { 169 176 $notes[] = sprintf( … … 173 180 ); 174 181 } 182 175 183 if ( empty( $readme->screenshots ) ) { 176 184 $notes[] = sprintf( … … 180 188 ); 181 189 } 190 182 191 if ( empty( $readme->donate_link ) ) { 183 192 $notes[] = __( 'No donate link was found', 'wporg-plugins' );
Note: See TracChangeset
for help on using the changeset viewer.