Make WordPress Core


Ignore:
Timestamp:
08/10/2021 01:44:34 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for a few functions per the documentation standards.

This affects:

  • checked()
  • selected()
  • disabled()
  • wp_readonly()
  • readonly()
  • __checked_selected_helper()

Follow-up to [143], [560], [9053], [10662], [13658], [41728], [51586].

See #53399.

File:
1 edited

Legend:

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

    r51586 r51592  
    1616 * Outputs the HTML readonly attribute.
    1717 *
    18  * Compares the first two arguments and if identical marks as readonly
     18 * Compares the first two arguments and if identical marks as readonly.
    1919 *
    2020 * This function is deprecated, and cannot be used on PHP >= 8.1.
     
    2525 * @see wp_readonly()
    2626 *
    27  * @param mixed $readonly One of the values to compare
    28  * @param mixed $current  (true) The other value to compare if not just true
    29  * @param bool  $echo     Whether to echo or just return the string
    30  * @return string HTML attribute or empty string
     27 * @param mixed $readonly One of the values to compare.
     28 * @param mixed $current  Optional. The other value to compare if not just true.
     29 *                        Default true.
     30 * @param bool  $echo     Optional. Whether to echo or just return the string.
     31 *                        Default true.
     32 * @return string HTML attribute or empty string.
    3133 */
    3234function readonly( $readonly, $current = true, $echo = true ) {
Note: See TracChangeset for help on using the changeset viewer.