WordPress.org

Make WordPress Core

Changeset 13108


Ignore:
Timestamp:
02/13/10 10:58:01 (4 years ago)
Author:
nacin
Message:

Fix typos in inline docs for clean_url() and esc_url().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r13096 r13108  
    21392139 * 
    21402140 * A number of characters are removed from the URL. If the URL is for displaying 
    2141  * (the default behaviour) amperstands are also replaced. The 'esc_url' filter 
     2141 * (the default behaviour) amperstands are also replaced. The 'clean_url' filter 
    21422142 * is applied to the returned cleaned URL. 
    21432143 * 
     
    21502150 *      Defaults to 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet' if not set. 
    21512151 * @param string $context Optional. How the URL will be used. Default is 'display'. 
    2152  * @return string The cleaned $url after the 'cleaned_url' filter is applied. 
     2152 * @return string The cleaned $url after the 'clean_url' filter is applied. 
    21532153 */ 
    21542154function clean_url( $url, $protocols = null, $context = 'display' ) { 
     
    22292229 * 
    22302230 * A number of characters are removed from the URL. If the URL is for displaying 
    2231  * (the default behaviour) amperstands are also replaced. The 'esc_url' filter 
     2231 * (the default behaviour) amperstands are also replaced. The 'clean_url' filter 
    22322232 * is applied to the returned cleaned URL. 
    22332233 * 
    22342234 * @since 2.8.0 
    2235  * @uses esc_url() 
     2235 * @uses clean_url() 
    22362236 * @uses wp_kses_bad_protocol() To only permit protocols in the URL set 
    22372237 *      via $protocols or the common ones set in the function. 
     
    22402240 * @param array $protocols Optional. An array of acceptable protocols. 
    22412241 *      Defaults to 'http', 'https', 'ftp', 'ftps', 'mailto', 'news', 'irc', 'gopher', 'nntp', 'feed', 'telnet' if not set. 
    2242  * @return string The cleaned $url after the 'cleaned_url' filter is applied. 
     2242 * @return string The cleaned $url after the 'clean_url' filter is applied. 
    22432243 */ 
    22442244function esc_url( $url, $protocols = null ) { 
     
    22492249 * Performs esc_url() for database usage. 
    22502250 * 
    2251  * @see esc_url() 
    2252  * @see esc_url() 
    2253  * 
    22542251 * @since 2.8.0 
     2252 * @uses clean_url() 
    22552253 * 
    22562254 * @param string $url The URL to be cleaned. 
Note: See TracChangeset for help on using the changeset viewer.