Make WordPress Core


Ignore:
Timestamp:
05/23/2016 07:00:41 PM (10 years ago)
Author:
DrewAPicture
Message:

Docs: Apply inline @see tags to hooks referenced in DocBlocks in a variety of wp-includes/* files.

Applying these specially-crafted @see tags allows the Code Reference parser to recognize and link these elements as actions and filters.

See #36921.

File:
1 edited

Legend:

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

    r37515 r37543  
    2121 * Code within certain html blocks are skipped.
    2222 *
    23  * Do not use this function before the 'init' action hook; everything will break.
     23 * Do not use this function before the {@see 'init'} action hook; everything will break.
    2424 *
    2525 * @since 0.71
     
    14421442 * alphanumeric, _, space, ., -, @. After sanitizing, it passes the username,
    14431443 * raw username (the username in the parameter), and the value of $strict as
    1444  * parameters for the 'sanitize_user' filter.
     1444 * parameters for the {@see 'sanitize_user'} filter.
    14451445 *
    14461446 * @since 2.0.0
     
    19051905 *
    19061906 * The $content is run through esc_textarea(), which uses htmlspecialchars()
    1907  * to convert special characters to HTML entities. If $richedit is set to true,
    1908  * it is simply a holder for the 'format_to_edit' filter.
     1907 * to convert special characters to HTML entities. If `$richedit` is set to true,
     1908 * it is simply a holder for the {@see 'format_to_edit'} filter.
    19091909 *
    19101910 * @since 0.71
     
    28782878 * is less than 55 words, then the content will be returned as is.
    28792879 *
    2880  * The 55 word limit can be modified by plugins/themes using the excerpt_length filter
    2881  * The ' […]' string can be modified by plugins/themes using the excerpt_more filter
     2880 * The 55 word limit can be modified by plugins/themes using the {@see 'excerpt_length'} filter
     2881 * The ' […]' string can be modified by plugins/themes using the {@see 'excerpt_more'} filter
    28822882 *
    28832883 * @since 1.5.0
     
    33543354 *
    33553355 * A number of characters are removed from the URL. If the URL is for displaying
    3356  * (the default behaviour) ampersands are also replaced. The 'clean_url' filter
     3356 * (the default behaviour) ampersands are also replaced. The {@see 'clean_url'} filter
    33573357 * is applied to the returned cleaned URL.
    33583358 *
     
    33633363 *                          Defaults to return value of wp_allowed_protocols()
    33643364 * @param string $_context  Private. Use esc_url_raw() for database usage.
    3365  * @return string The cleaned $url after the 'clean_url' filter is applied.
     3365 * @return string The cleaned $url after the {@see 'clean_url'} filter is applied.
    33663366 */
    33673367function esc_url( $url, $protocols = null, $_context = 'display' ) {
     
    34923492 * Escapes text strings for echoing in JS. It is intended to be used for inline JS
    34933493 * (in a tag attribute, for example onclick="..."). Note that the strings have to
    3494  * be in single quotes. The filter 'js_escape' is also applied here.
     3494 * be in single quotes. The {@see 'js_escape'} filter is also applied here.
    34953495 *
    34963496 * @since 2.8.0
Note: See TracChangeset for help on using the changeset viewer.