Changeset 3448 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-readme-validator.php
- Timestamp:
- 06/19/2016 08:34:06 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
r3414 r3448 57 57 'label_for' => 'readme_url', 58 58 ) ); 59 add_settings_field( 'readme_text', __( 'Text of readme.txt', 'wporg-plugins' ), 59 add_settings_field( 'readme_text', __( 'Text of readme.txt', 'wporg-plugins' ), array( $this, 'textarea' ), 'readme_validator', 'default', array( 60 60 'label_for' => 'readme_contents', 61 61 ) ); … … 79 79 $url = esc_url_raw( $_REQUEST['readme_url'] ); 80 80 81 if ( strtolower( substr( $url, - 10,10 ) ) != 'readme.txt' ) {81 if ( strtolower( substr( $url, -10 ) ) != 'readme.txt' ) { 82 82 /* Translators: File name; */ 83 83 add_settings_error( 'wporg-plugins', 'readme-validator', sprintf( __( 'URL must end in %s!', 'wporg-plugins' ), '<code>readme.txt</code>' ) ); … … 216 216 */ 217 217 public function textarea() { 218 $text = empty( $_REQUEST['readme_contents'] ) ? '' : $_REQUEST['readme_contents'];218 $text = empty( $_REQUEST['readme_contents'] ) ? '' : wp_unslash( $_REQUEST['readme_contents'] ); 219 219 ?> 220 220 <label>
Note: See TracChangeset
for help on using the changeset viewer.