WordPress.org

Make WordPress Core

Changeset 48199


Ignore:
Timestamp:
06/28/2020 02:00:26 PM (16 months ago)
Author:
SergeyBiryukov
Message:

Docs: Replace "html" and "xhtml" instances in DocBlocks and comments with "HTML" and "XHTML".

This ensures consistent capitalization where appropriate.

Props navidos, desrosj.
Fixes #50473.

Location:
trunk/src
Files:
12 edited

Legend:

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

    r48185 r48199  
    170170
    171171/**
    172  * Adds image shortcode with caption to editor
     172 * Adds image shortcode with caption to editor.
    173173 *
    174174 * @since 2.6.0
     
    249249
    250250/**
    251  * Private preg_replace callback used in image_add_caption()
     251 * Private preg_replace callback used in image_add_caption().
    252252 *
    253253 * @access private
     
    260260
    261261/**
    262  * Adds image html to editor
     262 * Adds image HTML to editor.
    263263 *
    264264 * @since 2.5.0
     
    277277
    278278/**
    279  * Save a file submitted from a POST request and create an attachment post for it.
     279 * Saves a file submitted from a POST request and create an attachment post for it.
    280280 *
    281281 * @since 2.5.0
     
    284284 * @param int    $post_id   The post ID of a post to attach the media item to. Required, but can
    285285 *                          be set to 0, creating a media item that has no relationship to a post.
    286  * @param array  $post_data Overwrite some of the attachment. Optional.
    287  * @param array  $overrides Override the wp_handle_upload() behavior. Optional.
     286 * @param array  $post_data Optional. Overwrite some of the attachment.
     287 * @param array  $overrides Optional. Override the wp_handle_upload() behavior.
    288288 * @return int|WP_Error ID of the attachment or a WP_Error object on failure.
    289289 */
  • trunk/src/wp-admin/includes/template.php

    r48168 r48199  
    924924
    925925/**
    926  * Print out option html elements for role selectors.
     926 * Print out option HTML elements for role selectors.
    927927 *
    928928 * @since 2.1.0
     
    15671567 *
    15681568 * The $callback argument should be the name of a function that echoes out the
    1569  * html input tags for this setting field. Use get_option() to retrieve existing
     1569 * HTML input tags for this setting field. Use get_option() to retrieve existing
    15701570 * values to show.
    15711571 *
     
    19191919 * Displays the post password.
    19201920 *
    1921  * The password is passed through esc_attr() to ensure that it is safe for placing in an html attribute.
     1921 * The password is passed through esc_attr() to ensure that it is safe for placing in an HTML attribute.
    19221922 *
    19231923 * @since 2.7.0
  • trunk/src/wp-content/themes/twentytwenty/inc/template-tags.php

    r48109 r48199  
    7171     * Filters the arguments for `twentytwenty_site_logo()`.
    7272     *
    73      * @param string $html      Compiled html based on our arguments.
     73     * @param string $html      Compiled HTML based on our arguments.
    7474     * @param array  $args      Parsed arguments.
    7575     * @param string $classname Class name based on current view, home or single.
     
    104104
    105105    /**
    106      * Filters the html for the site description.
     106     * Filters the HTML for the site description.
    107107     *
    108108     * @since Twenty Twenty 1.0
     
    327327
    328328                /**
    329                  * Fires before post meta html display.
     329                 * Fires before post meta HTML display.
    330330                 *
    331331                 * Allow output of additional post meta info to be added by child themes and plugins.
     
    454454
    455455                /**
    456                  * Fires after post meta html display.
     456                 * Fires after post meta HTML display.
    457457                 *
    458458                 * Allow output of additional post meta info to be added by child themes and plugins.
  • trunk/src/wp-includes/class-wp-ajax-response.php

    r48067 r48199  
    5656     *                                         `old_id` attribute. False hides the attribute. Default false.
    5757     *     @type string          $position     Value of the response type `position` attribute. Accepts 1 (bottom),
    58      *                                         -1 (top), html ID (after), or -html ID (before). Default 1 (bottom).
     58     *                                         -1 (top), HTML ID (after), or -HTML ID (before). Default 1 (bottom).
    5959     *     @type string|WP_Error $data         The response content/message. Also accepts a WP_Error object if the
    6060     *                                         ID does not exist. Default empty.
  • trunk/src/wp-includes/class-wp-customize-nav-menus.php

    r48100 r48199  
    11281128
    11291129    /**
    1130      * Print the html template used to render the add-menu-item frame.
     1130     * Print the HTML template used to render the add-menu-item frame.
    11311131     *
    11321132     * @since 4.3.0
  • trunk/src/wp-includes/comment.php

    r48185 r48199  
    27352735    }
    27362736
    2737     // Now do a GET since we're going to look in the html headers (and we're sure it's not a binary file).
     2737    // Now do a GET since we're going to look in the HTML headers (and we're sure it's not a binary file).
    27382738    $response = wp_safe_remote_get(
    27392739        $url,
  • trunk/src/wp-includes/deprecated.php

    r48197 r48199  
    380380 * @see get_bookmarks()
    381381 *
    382  * @param string $cat_name Optional. The category name to use. If no match is found uses all.
    383  * @param string $before Optional. The html to output before the link.
    384  * @param string $after Optional. The html to output after the link.
    385  * @param string $between Optional. The html to output between the link/image and its description. Not used if no image or $show_images is true.
    386  * @param bool $show_images Optional. Whether to show images (if defined).
    387  * @param string $orderby Optional. The order to output the links. E.g. 'id', 'name', 'url', 'description' or 'rating'. Or maybe owner.
    388  *      If you start the name with an underscore the order will be reversed. You can also specify 'rand' as the order which will return links in a
    389  *      random order.
    390  * @param bool $show_description Optional. Whether to show the description if show_images=false/not defined.
    391  * @param bool $show_rating Optional. Show rating stars/chars.
    392  * @param int $limit        Optional. Limit to X entries. If not specified, all entries are shown.
    393  * @param int $show_updated Optional. Whether to show last updated timestamp
     382 * @param string $cat_name         Optional. The category name to use. If no match is found, uses all.
     383 *                                 Default 'noname'.
     384 * @param string $before           Optional. The HTML to output before the link. Default empty.
     385 * @param string $after            Optional. The HTML to output after the link. Default '<br />'.
     386 * @param string $between          Optional. The HTML to output between the link/image and its description.
     387 *                                 Not used if no image or $show_images is true. Default ' '.
     388 * @param bool   $show_images      Optional. Whether to show images (if defined). Default true.
     389 * @param string $orderby          Optional. The order to output the links. E.g. 'id', 'name', 'url',
     390 *                                 'description', 'rating', or 'owner'. Default 'id'.
     391 *                                 If you start the name with an underscore, the order will be reversed.
     392 *                                 Specifying 'rand' as the order will return links in a random order.
     393 * @param bool   $show_description Optional. Whether to show the description if show_images=false/not defined.
     394 *                                 Default true.
     395 * @param bool   $show_rating      Optional. Show rating stars/chars. Default false.
     396 * @param int    $limit            Optional. Limit to X entries. If not specified, all entries are shown.
     397 *                                 Default -1.
     398 * @param int    $show_updated     Optional. Whether to show last updated timestamp. Default 0.
    394399 */
    395400function get_linksbyname($cat_name = "noname", $before = '', $after = '<br />', $between = " ", $show_images = true, $orderby = 'id',
     
    448453 * @see get_bookmarks()
    449454 *
    450  * @param string $cat_name The category name to use. If no match is found uses all.
    451  * @param string $orderby The order to output the links. E.g. 'id', 'name', 'url', 'description', or 'rating'.
    452  *      Or maybe owner. If you start the name with an underscore the order will be reversed. You can also
    453  *      specify 'rand' as the order which will return links in a random order.
    454  * @param int $limit Limit to X entries. If not specified, all entries are shown.
     455 * @param string $cat_name Optional. The category name to use. If no match is found, uses all.
     456 *                         Default 'noname'.
     457 * @param string $orderby  Optional. The order to output the links. E.g. 'id', 'name', 'url',
     458 *                         'description', 'rating', or 'owner'. Default 'name'.
     459 *                         If you start the name with an underscore, the order will be reversed.
     460 *                         Specifying 'rand' as the order will return links in a random order.
     461 * @param int    $limit    Optional. Limit to X entries. If not specified, all entries are shown.
     462 *                         Default -1.
    455463 * @return array
    456464 */
     
    498506 * @see get_bookmarks()
    499507 *
    500  * @param int $category The category to use. If no category supplied uses all
    501  * @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
    502  *      'description', or 'rating'. Or maybe owner. If you start the name with an
    503  *      underscore the order will be reversed. You can also specify 'rand' as the
    504  *      order which will return links in a random order.
    505  * @param int $limit Limit to X entries. If not specified, all entries are shown.
     508 * @param int    $category Optional. The category to use. If no category supplied, uses all.
     509 *                         Default 0.
     510 * @param string $orderby  Optional. The order to output the links. E.g. 'id', 'name', 'url',
     511 *                         'description', 'rating', or 'owner'. Default 'name'.
     512 *                         If you start the name with an underscore, the order will be reversed.
     513 *                         Specifying 'rand' as the order will return links in a random order.
     514 * @param int    $limit    Optional. Limit to X entries. If not specified, all entries are shown.
     515 *                         Default 0.
    506516 * @return array
    507517 */
     
    525535 * @see get_bookmarks()
    526536 *
    527  * @param string $cat_name The category name to use. If no match is found uses all
    528  * @param string $before The html to output before the link
    529  * @param string $after The html to output after the link
    530  * @param string $between The html to output between the link/image and its description. Not used if no image or show_images is true
    531  * @param bool $show_images Whether to show images (if defined).
    532  * @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
    533  *      'description', or 'rating'. Or maybe owner. If you start the name with an
    534  *      underscore the order will be reversed. You can also specify 'rand' as the
    535  *      order which will return links in a random order.
    536  * @param bool $show_description Whether to show the description if show_images=false/not defined
    537  * @param int $limit Limit to X entries. If not specified, all entries are shown.
    538  * @param int $show_updated Whether to show last updated timestamp
     537 * @param string $cat_name         Optional. The category name to use. If no match is found, uses all.
     538 *                                 Default 'noname'.
     539 * @param string $before           Optional. The HTML to output before the link. Default empty.
     540 * @param string $after            Optional. The HTML to output after the link. Default '<br />'.
     541 * @param string $between          Optional. The HTML to output between the link/image and its description.
     542 *                                 Not used if no image or $show_images is true. Default ' '.
     543 * @param bool   $show_images      Optional. Whether to show images (if defined). Default true.
     544 * @param string $orderby          Optional. The order to output the links. E.g. 'id', 'name', 'url',
     545 *                                 'description', 'rating', or 'owner'. Default 'id'.
     546 *                                 If you start the name with an underscore, the order will be reversed.
     547 *                                 Specifying 'rand' as the order will return links in a random order.
     548 * @param bool   $show_description Optional. Whether to show the description if show_images=false/not defined.
     549 *                                 Default true.
     550 * @param int    $limit            Optional. Limit to X entries. If not specified, all entries are shown.
     551 *                                 Default -1.
     552 * @param int    $show_updated     Optional. Whether to show last updated timestamp. Default 0.
    539553 */
    540554function get_linksbyname_withrating($cat_name = "noname", $before = '', $after = '<br />', $between = " ",
     
    552566 * @see get_bookmarks()
    553567 *
    554  * @param int $category The category to use. If no category supplied uses all
    555  * @param string $before The html to output before the link
    556  * @param string $after The html to output after the link
    557  * @param string $between The html to output between the link/image and its description. Not used if no image or show_images == true
    558  * @param bool $show_images Whether to show images (if defined).
    559  * @param string $orderby The order to output the links. E.g. 'id', 'name', 'url',
    560  *      'description', or 'rating'. Or maybe owner. If you start the name with an
    561  *      underscore the order will be reversed. You can also specify 'rand' as the
    562  *      order which will return links in a random order.
    563  * @param bool $show_description Whether to show the description if show_images=false/not defined.
    564  * @param int $limit Limit to X entries. If not specified, all entries are shown.
    565  * @param int $show_updated Whether to show last updated timestamp
     568 * @param int    $category         Optional. The category to use. If no category supplied, uses all.
     569 *                                 Default 0.
     570 * @param string $before           Optional. The HTML to output before the link. Default empty.
     571 * @param string $after            Optional. The HTML to output after the link. Default '<br />'.
     572 * @param string $between          Optional. The HTML to output between the link/image and its description.
     573 *                                 Not used if no image or $show_images is true. Default ' '.
     574 * @param bool   $show_images      Optional. Whether to show images (if defined). Default true.
     575 * @param string $orderby          Optional. The order to output the links. E.g. 'id', 'name', 'url',
     576 *                                 'description', 'rating', or 'owner'. Default 'id'.
     577 *                                 If you start the name with an underscore, the order will be reversed.
     578 *                                 Specifying 'rand' as the order will return links in a random order.
     579 * @param bool   $show_description Optional. Whether to show the description if show_images=false/not defined.
     580 *                                 Default true.
     581 * @param int    $limit            Optional. Limit to X entries. If not specified, all entries are shown.
     582 *                                 Default -1.
     583 * @param int    $show_updated     Optional. Whether to show last updated timestamp. Default 0.
    566584 */
    567585function get_links_withrating($category = -1, $before = '', $after = '<br />', $between = " ", $show_images = true,
     
    905923 * @see get_bookmarks()
    906924 *
    907  * @param int $category The category to use. If no category supplied uses all
    908  * @param string $before the html to output before the link
    909  * @param string $after the html to output after the link
    910  * @param string $between the html to output between the link/image and its description.
    911  *      Not used if no image or show_images == true
    912  * @param bool $show_images whether to show images (if defined).
    913  * @param string $orderby the order to output the links. E.g. 'id', 'name', 'url',
    914  *      'description', or 'rating'. Or maybe owner. If you start the name with an
    915  *      underscore the order will be reversed. You can also specify 'rand' as the order
    916  *      which will return links in a random order.
    917  * @param bool $show_description whether to show the description if show_images=false/not defined.
    918  * @param bool $show_rating show rating stars/chars
    919  * @param int $limit Limit to X entries. If not specified, all entries are shown.
    920  * @param int $show_updated whether to show last updated timestamp
    921  * @param bool $echo whether to echo the results, or return them instead
     925 * @param int    $category         Optional. The category to use. If no category supplied uses all.
     926 *                                 Default 0.
     927 * @param string $before           Optional. The HTML to output before the link. Default empty.
     928 * @param string $after            Optional. The HTML to output after the link. Default '<br />'.
     929 * @param string $between          Optional. The HTML to output between the link/image and its description.
     930 *                                 Not used if no image or $show_images is true. Default ' '.
     931 * @param bool   $show_images      Optional. Whether to show images (if defined). Default true.
     932 * @param string $orderby          Optional. The order to output the links. E.g. 'id', 'name', 'url',
     933 *                                 'description', 'rating', or 'owner'. Default 'name'.
     934 *                                 If you start the name with an underscore, the order will be reversed.
     935 *                                 Specifying 'rand' as the order will return links in a random order.
     936 * @param bool   $show_description Optional. Whether to show the description if show_images=false/not defined.
     937 *                                 Default true.
     938 * @param bool   $show_rating      Optional. Show rating stars/chars. Default false.
     939 * @param int    $limit            Optional. Limit to X entries. If not specified, all entries are shown.
     940 *                                 Default -1.
     941 * @param int    $show_updated     Optional. Whether to show last updated timestamp. Default 1.
     942 * @param bool   $echo             Whether to echo the results, or return them instead.
    922943 * @return null|string
    923944 */
     
    16291650 * Display the post content for the feed.
    16301651 *
    1631  * For encoding the html or the $encode_html parameter, there are three possible
    1632  * values. '0' will make urls footnotes and use make_url_footnote(). '1' will
    1633  * encode special characters and automatically display all of the content. The
    1634  * value of '2' will strip all HTML tags from the content.
    1635  *
    1636  * Also note that you cannot set the amount of words and not set the html
    1637  * encoding. If that is the case, then the html encoding will default to 2,
    1638  * which will strip all HTML tags.
    1639  *
    1640  * To restrict the amount of words of the content, you can use the cut
    1641  * parameter. If the content is less than the amount, then there won't be any
    1642  * dots added to the end. If there is content left over, then dots will be added
    1643  * and the rest of the content will be removed.
     1652 * For encoding the HTML or the $encode_html parameter, there are three possible values:
     1653 * - '0' will make urls footnotes and use make_url_footnote().
     1654 * - '1' will encode special characters and automatically display all of the content.
     1655 * - '2' will strip all HTML tags from the content.
     1656 *
     1657 * Also note that you cannot set the amount of words and not set the HTML encoding.
     1658 * If that is the case, then the HTML encoding will default to 2, which will strip
     1659 * all HTML tags.
     1660 *
     1661 * To restrict the amount of words of the content, you can use the cut parameter.
     1662 * If the content is less than the amount, then there won't be any dots added to the end.
     1663 * If there is content left over, then dots will be added and the rest of the content
     1664 * will be removed.
    16441665 *
    16451666 * @since 0.71
     
    16481669 * @see the_content_feed()
    16491670 *
    1650  * @param string $more_link_text Optional. Text to display when more content is available but not displayed.
    1651  * @param int $stripteaser Optional. Default is 0.
    1652  * @param string $more_file Optional.
    1653  * @param int $cut Optional. Amount of words to keep for the content.
    1654  * @param int $encode_html Optional. How to encode the content.
     1671 * @param string $more_link_text Optional. Text to display when more content is available
     1672 *                               but not displayed. Default '(more...)'.
     1673 * @param int    $stripteaser    Optional. Default 0.
     1674 * @param string $more_file      Optional.
     1675 * @param int    $cut            Optional. Amount of words to keep for the content.
     1676 * @param int    $encode_html    Optional. How to encode the content.
    16551677 */
    16561678function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0) {
     
    17051727 * @deprecated 2.9.0
    17061728 *
    1707  * @param string $content Content to get links
     1729 * @param string $content Content to get links.
    17081730 * @return string HTML stripped out of content with links at the bottom.
    17091731 */
     
    17431765 * @see _x()
    17441766 *
    1745  * @param string $text Text to translate
    1746  * @param string $domain Optional. Domain to retrieve the translated text
    1747  * @return string Translated context string without pipe
     1767 * @param string $text Text to translate.
     1768 * @param string $domain Optional. Domain to retrieve the translated text.
     1769 * @return string Translated context string without pipe.
    17481770 */
    17491771function _c( $text, $domain = 'default' ) {
     
    17601782 * @see _x()
    17611783 *
    1762  * @param string $text Text to translate
    1763  * @param string $domain Domain to retrieve the translated text
    1764  * @return string Translated text
     1784 * @param string $text Text to translate.
     1785 * @param string $domain Domain to retrieve the translated text.
     1786 * @return string Translated text.
    17651787 */
    17661788function translate_with_context( $text, $domain = 'default' ) {
  • trunk/src/wp-includes/feed.php

    r48067 r48199  
    536536 * Determine the type of a string of data with the data formatted.
    537537 *
    538  * Tell whether the type is text, html, or xhtml, per RFC 4287 section 3.1.
     538 * Tell whether the type is text, HTML, or XHTML, per RFC 4287 section 3.1.
    539539 *
    540540 * In the case of WordPress, text is defined as containing no markup,
    541  * xhtml is defined as "well formed", and html as tag soup (i.e., the rest).
    542  *
    543  * Container div tags are added to xhtml values, per section 3.1.1.3.
     541 * XHTML is defined as "well formed", and HTML as tag soup (i.e., the rest).
     542 *
     543 * Container div tags are added to XHTML values, per section 3.1.1.3.
    544544 *
    545545 * @link http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.3.1
  • trunk/src/wp-includes/formatting.php

    r48185 r48199  
    929929 *                                    Default is ENT_NOQUOTES.
    930930 * @param false|string $charset       Optional. The character encoding of the string. Default false.
    931  * @param bool         $double_encode Optional. Whether to encode existing html entities. Default false.
     931 * @param bool         $double_encode Optional. Whether to encode existing HTML entities. Default false.
    932932 * @return string The encoded text with HTML entities.
    933933 */
     
    51375137
    51385138/**
    5139  * Safely extracts not more than the first $count characters from html string.
     5139 * Safely extracts not more than the first $count characters from HTML string.
    51405140 *
    51415141 * UTF-8, tags and entities safe prefix extraction. Entities inside will *NOT*
     
    60146014 * Saving hex colors without a hash puts the burden of adding the hash on the
    60156015 * UI, which makes it difficult to use or upgrade to other color types such as
    6016  * rgba, hsl, rgb, and html color names.
     6016 * rgba, hsl, rgb, and HTML color names.
    60176017 *
    60186018 * Returns either '', a 3 or 6 digit hex color (without a #), or null.
  • trunk/src/wp-includes/functions.php

    r48185 r48199  
    65606560/**
    65616561 * Retrieve a canonical form of the provided charset appropriate for passing to PHP
    6562  * functions such as htmlspecialchars() and charset html attributes.
     6562 * functions such as htmlspecialchars() and charset HTML attributes.
    65636563 *
    65646564 * @since 3.6.0
  • trunk/src/wp-includes/general-template.php

    r48197 r48199  
    39163916 *
    39173917 * The search query string is passed through esc_attr() to ensure that it is safe
    3918  * for placing in an html attribute.
     3918 * for placing in an HTML attribute.
    39193919 *
    39203920 * @since 2.3.0
     
    39443944 *
    39453945 * The search query string is passed through esc_attr() to ensure that it is safe
    3946  * for placing in an html attribute.
     3946 * for placing in an HTML attribute.
    39473947 *
    39483948 * @since 2.1.0
     
    39603960
    39613961/**
    3962  * Gets the language attributes for the html tag.
    3963  *
    3964  * Builds up a set of html attributes containing the text direction and language
     3962 * Gets the language attributes for the 'html' tag.
     3963 *
     3964 * Builds up a set of HTML attributes containing the text direction and language
    39653965 * information for the page.
    39663966 *
    39673967 * @since 4.3.0
    39683968 *
    3969  * @param string $doctype Optional. The type of html document. Accepts 'xhtml' or 'html'. Default 'html'.
     3969 * @param string $doctype Optional. The type of HTML document. Accepts 'xhtml' or 'html'. Default 'html'.
    39703970 */
    39713971function get_language_attributes( $doctype = 'html' ) {
     
    39903990
    39913991    /**
    3992      * Filters the language attributes for display in the html tag.
     3992     * Filters the language attributes for display in the 'html' tag.
    39933993     *
    39943994     * @since 2.5.0
     
    39963996     *
    39973997     * @param string $output A space-separated list of language attributes.
    3998      * @param string $doctype The type of html document (xhtml|html).
     3998     * @param string $doctype The type of HTML document (xhtml|html).
    39993999     */
    40004000    return apply_filters( 'language_attributes', $output, $doctype );
     
    40024002
    40034003/**
    4004  * Displays the language attributes for the html tag.
    4005  *
    4006  * Builds up a set of html attributes containing the text direction and language
     4004 * Displays the language attributes for the 'html' tag.
     4005 *
     4006 * Builds up a set of HTML attributes containing the text direction and language
    40074007 * information for the page.
    40084008 *
     
    40104010 * @since 4.3.0 Converted into a wrapper for get_language_attributes().
    40114011 *
    4012  * @param string $doctype Optional. The type of html document. Accepts 'xhtml' or 'html'. Default 'html'.
     4012 * @param string $doctype Optional. The type of HTML document. Accepts 'xhtml' or 'html'. Default 'html'.
    40134013 */
    40144014function language_attributes( $doctype = 'html' ) {
     
    46554655
    46564656/**
    4657  * Outputs the html checked attribute.
     4657 * Outputs the HTML checked attribute.
    46584658 *
    46594659 * Compares the first two arguments and if identical marks as checked
     
    46644664 * @param mixed $current (true) The other value to compare if not just true
    46654665 * @param bool  $echo    Whether to echo or just return the string
    4666  * @return string html attribute or empty string
     4666 * @return string HTML attribute or empty string
    46674667 */
    46684668function checked( $checked, $current = true, $echo = true ) {
     
    46714671
    46724672/**
    4673  * Outputs the html selected attribute.
     4673 * Outputs the HTML selected attribute.
    46744674 *
    46754675 * Compares the first two arguments and if identical marks as selected
     
    46804680 * @param mixed $current  (true) The other value to compare if not just true
    46814681 * @param bool  $echo     Whether to echo or just return the string
    4682  * @return string html attribute or empty string
     4682 * @return string HTML attribute or empty string
    46834683 */
    46844684function selected( $selected, $current = true, $echo = true ) {
     
    46874687
    46884688/**
    4689  * Outputs the html disabled attribute.
     4689 * Outputs the HTML disabled attribute.
    46904690 *
    46914691 * Compares the first two arguments and if identical marks as disabled
     
    46964696 * @param mixed $current  (true) The other value to compare if not just true
    46974697 * @param bool  $echo     Whether to echo or just return the string
    4698  * @return string html attribute or empty string
     4698 * @return string HTML attribute or empty string
    46994699 */
    47004700function disabled( $disabled, $current = true, $echo = true ) {
     
    47034703
    47044704/**
    4705  * Outputs the html readonly attribute.
     4705 * Outputs the HTML readonly attribute.
    47064706 *
    47074707 * Compares the first two arguments and if identical marks as readonly
     
    47124712 * @param mixed $current  (true) The other value to compare if not just true
    47134713 * @param bool  $echo     Whether to echo or just return the string
    4714  * @return string html attribute or empty string
     4714 * @return string HTML attribute or empty string
    47154715 */
    47164716function readonly( $readonly, $current = true, $echo = true ) {
     
    47304730 * @param bool   $echo    Whether to echo or just return the string
    47314731 * @param string $type    The type of checked|selected|disabled|readonly we are doing
    4732  * @return string html attribute or empty string
     4732 * @return string HTML attribute or empty string
    47334733 */
    47344734function __checked_selected_helper( $helper, $current, $echo, $type ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
  • trunk/src/wp-includes/kses.php

    r48198 r48199  
    23912391
    23922392/**
    2393  * Helper function to add global attributes to a tag in the allowed html list.
     2393 * Helper function to add global attributes to a tag in the allowed HTML list.
    23942394 *
    23952395 * @since 3.5.0
Note: See TracChangeset for help on using the changeset viewer.