Make WordPress Core


Ignore:
Timestamp:
07/09/2009 09:13:23 PM (15 years ago)
Author:
westi
Message:

Make checked and selected compare more carefully and update the phpdoc with the correct @since version. Fixes #9862 props Denis-de-Bernardy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r11676 r11703  
    377377 * Compares the first two arguments and if identical marks as checked
    378378 *
    379  * @since 2.8
     379 * @since 1.0
    380380 *
    381381 * @param any $checked One of the values to compare
     
    392392 * Compares the first two arguments and if identical marks as selected
    393393 *
    394  * @since 2.8
     394 * @since 1.0
    395395 *
    396396 * @param any selected One of the values to compare
     
    416416 */
    417417function __checked_selected_helper( $helper, $current, $echo, $type) {
    418     if ( $helper == $current)
     418    if ( (string) $helper === (string) $current)
    419419        $result = " $type='$type'";
    420420    else
Note: See TracChangeset for help on using the changeset viewer.