Ticket #16886: 16886.patch
File 16886.patch, 1.5 KB (added by , 8 years ago) |
---|
-
src/wp-includes/general-template.php
3800 3800 } 3801 3801 3802 3802 /** 3803 * Private helper function for checked, selected, and disabled.3803 * Outputs the html readonly attribute. 3804 3804 * 3805 * Compares the first two arguments and if identical marks as readonly 3806 * 3807 * @since trunk 3808 * 3809 * @param mixed $readonly One of the values to compare 3810 * @param mixed $current (true) The other value to compare if not just true 3811 * @param bool $echo Whether to echo or just return the string 3812 * @return string html attribute or empty string 3813 */ 3814 function readonly( $readonly, $current = true, $echo = true ) { 3815 return __checked_selected_helper( $readonly, $current, $echo, 'readonly' ); 3816 } 3817 3818 /** 3819 * Private helper function for checked, selected, disabled and readonly. 3820 * 3805 3821 * Compares the first two arguments and if identical marks as $type 3806 3822 * 3807 3823 * @since 2.8.0 … … 3810 3826 * @param mixed $helper One of the values to compare 3811 3827 * @param mixed $current (true) The other value to compare if not just true 3812 3828 * @param bool $echo Whether to echo or just return the string 3813 * @param string $type The type of checked|selected|disabled we are doing3829 * @param string $type The type of checked|selected|disabled|readonly we are doing 3814 3830 * @return string html attribute or empty string 3815 3831 */ 3816 3832 function __checked_selected_helper( $helper, $current, $echo, $type ) {