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/kses.php

    r37518 r37543  
    3535 * You can override this in a plugin.
    3636 *
    37  * The wp_kses_allowed_html filter is more powerful and supplies context.
    38  * CUSTOM_TAGS is not recommended and should be considered deprecated.
     37 * The {@see 'wp_kses_allowed_html'} filter is more powerful and supplies context.
     38 *
     39 * `CUSTOM_TAGS` is not recommended and should be considered deprecated.
    3940 *
    4041 * @see wp_kses_allowed_html()
     
    668669 * You add any kses hooks here.
    669670 *
    670  * There is currently only one kses WordPress hook and it is called here. All
    671  * parameters are passed to the hooks and expected to receive a string.
     671 * There is currently only one kses WordPress hook, {@see 'pre_kses'}, and it is called here.
     672 * All parameters are passed to the hooks and expected to receive a string.
    672673 *
    673674 * @since 1.0.0
     
    676677 * @param array  $allowed_html      List of allowed HTML elements
    677678 * @param array  $allowed_protocols Allowed protocol in links
    678  * @return string Filtered content through 'pre_kses' hook
     679 * @return string Filtered content through {@see 'pre_kses'} hook.
    679680 */
    680681function wp_kses_hook( $string, $allowed_html, $allowed_protocols ) {
     
    16421643 * content in WordPress Loop.
    16431644 *
    1644  * Does not remove the kses_init() function from 'init' hook (priority is
    1645  * default). Also does not remove kses_init() function from 'set_current_user'
     1645 * Does not remove the kses_init() function from {@see 'init'} hook (priority is
     1646 * default). Also does not remove kses_init() function from {@see 'set_current_user'}
    16461647 * hook (priority is also default).
    16471648 *
     
    16651666 * Sets up most of the Kses filters for input form content.
    16661667 *
    1667  * If you remove the kses_init() function from 'init' hook and
    1668  * 'set_current_user' (priority is default), then none of the Kses filter hooks
     1668 * If you remove the kses_init() function from {@see 'init'} hook and
     1669 * {@see 'set_current_user'} (priority is default), then none of the Kses filter hooks
    16691670 * will be added.
    16701671 *
Note: See TracChangeset for help on using the changeset viewer.