Changeset 37543 for trunk/src/wp-includes/kses.php
- Timestamp:
- 05/23/2016 07:00:41 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/kses.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/kses.php
r37518 r37543 35 35 * You can override this in a plugin. 36 36 * 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. 39 40 * 40 41 * @see wp_kses_allowed_html() … … 668 669 * You add any kses hooks here. 669 670 * 670 * There is currently only one kses WordPress hook and it is called here. All671 * 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. 672 673 * 673 674 * @since 1.0.0 … … 676 677 * @param array $allowed_html List of allowed HTML elements 677 678 * @param array $allowed_protocols Allowed protocol in links 678 * @return string Filtered content through 'pre_kses' hook679 * @return string Filtered content through {@see 'pre_kses'} hook. 679 680 */ 680 681 function wp_kses_hook( $string, $allowed_html, $allowed_protocols ) { … … 1642 1643 * content in WordPress Loop. 1643 1644 * 1644 * Does not remove the kses_init() function from 'init'hook (priority is1645 * 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'} 1646 1647 * hook (priority is also default). 1647 1648 * … … 1665 1666 * Sets up most of the Kses filters for input form content. 1666 1667 * 1667 * If you remove the kses_init() function from 'init'hook and1668 * 'set_current_user'(priority is default), then none of the Kses filter hooks1668 * 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 1669 1670 * will be added. 1670 1671 *
Note: See TracChangeset
for help on using the changeset viewer.