Ticket #32008: 32008.4.diff
| File 32008.4.diff, 1.8 KB (added by , 11 years ago) |
|---|
-
src/wp-includes/formatting.php
3145 3145 } 3146 3146 3147 3147 /** 3148 * Wrapper for esc_url 3149 * 3150 * @since 4.3 3151 * 3152 * @uses esc_url() 3153 * 3154 * @param string $url The URL to be cleaned. 3155 * @param array $protocols Optional. An array of acceptable protocols. 3156 * Defaults to 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet', 'mms', 'rtsp', 'svn' if not set. 3157 * @param string $_context Private. Use esc_url_raw() for database usage. 3158 * @return string The cleaned $url after the 'clean_url' filter is applied. 3159 */ 3160 function e_esc_url( $url, $protocols = null, $_context = 'display' ) { 3161 echo esc_url( $url, $protocols , $_context ); 3162 } 3163 3164 /** 3148 3165 * Performs esc_url() for database usage. 3149 3166 * 3150 3167 * @since 2.8.0 … … 3230 3247 return apply_filters( 'esc_html', $safe_text, $text ); 3231 3248 } 3232 3249 3250 3233 3251 /** 3252 * Wrapper to echo the result esc_html 3253 * 3254 * @since 4.3 3255 * @uses esc_html 3256 * 3257 * @param string $text 3258 */ 3259 function e_esc_html( $text ) { 3260 echo esc_html( $text ); 3261 } 3262 3263 /** 3234 3264 * Escaping for HTML attributes. 3235 3265 * 3236 3266 * @since 2.8.0 … … 3256 3286 } 3257 3287 3258 3288 /** 3289 * Wrapper to echo the result of esc_attr 3290 * 3291 * @since 4.3 3292 * @uses esc_attr 3293 * 3294 * @param $text 3295 */ 3296 function e_esc_attr( $text ) { 3297 echo esc_attr( $text ); 3298 } 3299 3300 /** 3259 3301 * Escaping for textarea values. 3260 3302 * 3261 3303 * @since 3.1.0 … … 3276 3318 return apply_filters( 'esc_textarea', $safe_text, $text ); 3277 3319 } 3278 3320 3321 3279 3322 /** 3323 * Wrapper to echo the result of esc_textarea 3324 * 3325 * @since 4.3 3326 * @uses esc_textarea 3327 * @param $text 3328 */ 3329 function e_esc_textarea( $text ) { 3330 echo esc_textarea( $text ); 3331 } 3332 3333 /** 3280 3334 * Escape an HTML tag name. 3281 3335 * 3282 3336 * @since 2.5.0
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)