Changeset 48444
- Timestamp:
- 07/12/2020 01:11:35 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r48441 r48444 2085 2085 * 2086 2086 * @param string $username The username to be sanitized. 2087 * @param bool $strict If set limits $username to specific characters. Default false. 2087 * @param bool $strict Optional. If set limits $username to specific characters. 2088 * Default false. 2088 2089 * @return string The sanitized username, after passing through filters. 2089 2090 */ … … 2113 2114 * @param string $username Sanitized username. 2114 2115 * @param string $raw_username The username prior to sanitization. 2115 * @param bool $strict Whether to limit the sanitization to specific characters. Default false.2116 * @param bool $strict Whether to limit the sanitization to specific characters. 2116 2117 */ 2117 2118 return apply_filters( 'sanitize_user', $username, $raw_username, $strict ); … … 2121 2122 * Sanitizes a string key. 2122 2123 * 2123 * Keys are used as internal identifiers. Lowercase alphanumeric characters, dashes and underscores are allowed. 2124 * Keys are used as internal identifiers. Lowercase alphanumeric characters, 2125 * dashes, and underscores are allowed. 2124 2126 * 2125 2127 * @since 3.0.0 … … 2145 2147 2146 2148 /** 2147 * Sanitizes a string into a slug, which can be used in places such as URLs or HTML attributes. 2148 * 2149 * In a save context, converts accents to ASCII characters. By default, output is 2150 * further limited to alphanumeric characters, underscore (_) and dash (-) through the 2151 * 'sanitize_title' filter. If $title is empty and $fallback_title is set, the latter 2152 * will be used. 2149 * Sanitizes a string into a slug, which can be used in URLs or HTML attributes. 2150 * 2151 * By default, converts accent characters to ASCII characters and further 2152 * limits the output to alphanumeric characters, underscore (_) and dash (-) 2153 * through the {@see 'sanitize_title'} filter. 2154 * 2155 * If `$title` is empty and `$fallback_title` is set, the latter will be used. 2153 2156 * 2154 2157 * @since 1.0.0 2155 2158 * 2156 2159 * @param string $title The string to be sanitized. 2157 * @param string $fallback_title Optional. A title to use if $title is empty. 2158 * @param string $context Optional. The operation for which the string is sanitized 2160 * @param string $fallback_title Optional. A title to use if $title is empty. Default empty. 2161 * @param string $context Optional. The operation for which the string is sanitized. 2162 * Default 'save'. 2159 2163 * @return string The sanitized string. 2160 2164 */ … … 2207 2211 * 2208 2212 * @param string $title The title to be sanitized. 2209 * @param string $raw_title Optional. Not used. 2213 * @param string $raw_title Optional. Not used. Default empty. 2210 2214 * @param string $context Optional. The operation for which the string is sanitized. 2215 * Default 'display'. 2211 2216 * @return string The sanitized title. 2212 2217 */
Note: See TracChangeset
for help on using the changeset viewer.