Changeset 57120 for trunk/src/wp-includes/blocks.php
- Timestamp:
- 11/17/2023 01:27:23 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r57066 r57120 1972 1972 /** 1973 1973 * Strips all HTML from the content of footnotes, and sanitizes the ID. 1974 * 1974 1975 * This function expects slashed data on the footnotes content. 1975 1976 * … … 1977 1978 * @since 6.3.2 1978 1979 * 1979 * @param string $footnotes JSON 1980 * @return string Filtered content without any HTML on the footnote content and with the sanitized id.1980 * @param string $footnotes JSON-encoded string of an array containing the content and ID of each footnote. 1981 * @return string Filtered content without any HTML on the footnote content and with the sanitized ID. 1981 1982 */ 1982 1983 function _wp_filter_post_meta_footnotes( $footnotes ) { … … 1998 1999 1999 2000 /** 2000 * Adds the filters to filter footnotes meta field.2001 * Adds the filters for footnotes meta field. 2001 2002 * 2002 2003 * @access private … … 2008 2009 2009 2010 /** 2010 * Removes the filters that filter footnotes meta field.2011 * Removes the filters for footnotes meta field. 2011 2012 * 2012 2013 * @access private … … 2018 2019 2019 2020 /** 2020 * Registers the filter of footnotes meta field if the user does not have unfiltered_htmlcapability.2021 * Registers the filter of footnotes meta field if the user does not have `unfiltered_html` capability. 2021 2022 * 2022 2023 * @access private … … 2031 2032 2032 2033 /** 2033 * Initializes footnotes meta field filterswhen imported data should be filtered.2034 * 2035 * This filter is the last being executed on force_filtered_html_on_import.2036 * If the input of the filter is true it means we are in an import situation and should2037 * enable kses, independently of the user capabilities. 2038 * So in that case we call _wp_footnotes_kses_init_filters;2034 * Initializes the filters for footnotes meta field when imported data should be filtered. 2035 * 2036 * This filter is the last one being executed on {@see 'force_filtered_html_on_import'}. 2037 * If the input of the filter is true, it means we are in an import situation and should 2038 * enable kses, independently of the user capabilities. So in that case we call 2039 * _wp_footnotes_kses_init_filters(). 2039 2040 * 2040 2041 * @access private … … 2045 2046 */ 2046 2047 function _wp_footnotes_force_filtered_html_on_import_filter( $arg ) { 2047 // force_filtered_html_on_import is truewe need to init the global styles kses filters.2048 // If `force_filtered_html_on_import` is true, we need to init the global styles kses filters. 2048 2049 if ( $arg ) { 2049 2050 _wp_footnotes_kses_init_filters();
Note: See TracChangeset
for help on using the changeset viewer.