Changeset 51586 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 08/09/2021 05:19:21 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r51298 r51586 4814 4814 * Compares the first two arguments and if identical marks as readonly 4815 4815 * 4816 * @since 4.9.04816 * @since 5.9.0 4817 4817 * 4818 4818 * @param mixed $readonly One of the values to compare … … 4821 4821 * @return string HTML attribute or empty string 4822 4822 */ 4823 function readonly( $readonly, $current = true, $echo = true ) {4823 function wp_readonly( $readonly, $current = true, $echo = true ) { 4824 4824 return __checked_selected_helper( $readonly, $current, $echo, 'readonly' ); 4825 } 4826 4827 /* 4828 * Include a compat `readonly()` function on PHP < 8.1. Since PHP 8.1, 4829 * `readonly` is a reserved keyword and cannot be used as a function name. 4830 * In order to avoid PHP parser errors, this function was extracted 4831 * to a separate file and is only included conditionally on PHP < 8.1. 4832 */ 4833 if ( PHP_VERSION_ID < 80100 ) { 4834 require_once __DIR__ . '/php-compat/readonly.php'; 4825 4835 } 4826 4836
Note: See TracChangeset
for help on using the changeset viewer.