Changeset 54951
- Timestamp:
- 12/08/2022 07:29:51 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/php-compat/readonly.php
r53086 r54951 25 25 * @see wp_readonly() 26 26 * 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 $ echoOptional. Whether to echo or just return the string.31 * Default true.27 * @param mixed $readonly_value 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 $display Optional. Whether to echo or just return the string. 31 * Default true. 32 32 * @return string HTML attribute or empty string. 33 33 */ 34 function readonly( $readonly , $current = true, $echo= true ) {34 function readonly( $readonly_value, $current = true, $display = true ) { 35 35 _deprecated_function( __FUNCTION__, '5.9.0', 'wp_readonly()' ); 36 return wp_readonly( $readonly , $current, $echo);36 return wp_readonly( $readonly_value, $current, $display ); 37 37 }
Note: See TracChangeset
for help on using the changeset viewer.