[wp-trac] [WordPress Trac] #28186: Error in general-template.php
WordPress Trac
noreply at wordpress.org
Fri May 9 00:11:10 UTC 2014
#28186: Error in general-template.php
--------------------------+-----------------------------
Reporter: johannesjo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The use of (string) is cause of an error to me with php 5.4. Also the
documentation of the function is in conflict with the comparison at the
beginning of the function, where helper is expected to be a mixed-var-
type:
{{{
/**
* Private helper function for checked, selected, and disabled.
*
* Compares the first two arguments and if identical marks as $type
*
* @since 2.8.0
* @access private
*
* @param mixed $helper One of the values to compare
* @param mixed $current (true) The other value to compare if not just
true
* @param bool $echo Whether to echo or just return the string
* @param string $type The type of checked|selected|disabled we are doing
* @return string html attribute or empty string
*/
function __checked_selected_helper( $helper, $current, $echo, $type ) {
if ( (string) $helper === (string) $current )rent )
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28186>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list