Make WordPress Core


Ignore:
Timestamp:
11/17/2023 01:27:23 PM (19 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve some DocBlocks and inline comments per the documentation standards.

Follow-up to [56834], [56836], [56837], [56838].

Props kebbet, costdev, mukesh27, SergeyBiryukov.
See #59651.

File:
1 edited

Legend:

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

    r57066 r57120  
    19721972/**
    19731973 * Strips all HTML from the content of footnotes, and sanitizes the ID.
     1974 *
    19741975 * This function expects slashed data on the footnotes content.
    19751976 *
     
    19771978 * @since 6.3.2
    19781979 *
    1979  * @param string $footnotes JSON encoded string of an array containing the content and ID of each footnote.
    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.
    19811982 */
    19821983function _wp_filter_post_meta_footnotes( $footnotes ) {
     
    19981999
    19992000/**
    2000  * Adds the filters to filter footnotes meta field.
     2001 * Adds the filters for footnotes meta field.
    20012002 *
    20022003 * @access private
     
    20082009
    20092010/**
    2010  * Removes the filters that filter footnotes meta field.
     2011 * Removes the filters for footnotes meta field.
    20112012 *
    20122013 * @access private
     
    20182019
    20192020/**
    2020  * Registers the filter of footnotes meta field if the user does not have unfiltered_html capability.
     2021 * Registers the filter of footnotes meta field if the user does not have `unfiltered_html` capability.
    20212022 *
    20222023 * @access private
     
    20312032
    20322033/**
    2033  * Initializes footnotes meta field filters when 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 should
    2037  * 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().
    20392040 *
    20402041 * @access private
     
    20452046 */
    20462047function _wp_footnotes_force_filtered_html_on_import_filter( $arg ) {
    2047     // force_filtered_html_on_import is true we 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.
    20482049    if ( $arg ) {
    20492050        _wp_footnotes_kses_init_filters();
Note: See TracChangeset for help on using the changeset viewer.