Changeset 10276 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-validator.php
- Timestamp:
- 09/17/2020 02:55:13 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/readme/class-validator.php
r9050 r10276 31 31 $url = esc_url_raw( $url ); 32 32 33 if ( strtolower( substr( $url, -10 ) ) != 'readme.txt' ) { 33 if ( 34 strtolower( substr( $url, -10 ) ) != 'readme.txt' && 35 strtolower( substr( $url, -9 ) ) != 'readme.md' 36 ) { 34 37 $error = sprintf( 35 38 /* translators: %s: readme.txt */ 36 __( 'URL must end in %s !', 'wporg-plugins' ),37 '<code>readme.txt</code>' 39 __( 'URL must end in %s or %s!', 'wporg-plugins' ), 40 '<code>readme.txt</code>', '<code>readme.md</code>' 38 41 ); 39 42 return array(
Note: See TracChangeset
for help on using the changeset viewer.