public/wordpress/wp-content/plugins/wp-courseware/includes/common/settings-api.php
/**
	 * Validate Password Field.
	 *
	 * No input sanitization is used to avoid corrupting passwords.
	 *
	 * @since 4.3.0
	 *
	 * @param string      $key The field key.
	 * @param string|null $value The field value.
	 *
	 * @return string The properly sanitized and escaped value.
	 */
Validate Password Field.
No input sanitization is used to avoid corrupting passwords.



@param string      $key The field key.
@param string|null $value The field value.

@return string The properly sanitized and escaped value.
Validate Password Field . No input sanitization is used to avoid corrupting passwords . @param string $key The field key . @param string|null $value The field value . @return string The properly sanitized and escaped value .
public function validate_password_field( $key, $value ) {
		$value = is_null( $value ) ? '' : $value;
		return trim( stripslashes( $value ) );
	}
public function validate_password_field ( $ key , $ value ) { $ value = is_null ( $ value ) ? '' : $ value ; return trim ( stripslashes ( $ value ) ) ; }
Validate Password Field.
Validate Password Field .