Ticket #32008: 32008.2.diff
| File 32008.2.diff, 1.4 KB (added by , 11 years ago) |
|---|
-
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 echo_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 for esc_html() 3253 * 3254 * @since 4.3 3255 * @uses esc_html() 3256 * 3257 * @param string $text 3258 */ 3259 function echo_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 for esc_attr 3290 * 3291 * @since 4.3 3292 * @uses esc_attr 3293 * 3294 * @param $text 3295 */ 3296 function echo_attr( $text ) { 3297 echo esc_attr( $text ); 3298 } 3299 3300 /** 3259 3301 * Escaping for textarea values. 3260 3302 * 3261 3303 * @since 3.1.0
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)