WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/12/2015 05:47:16 PM (6 years ago)
Author:
wonderboymusic
Message:

$status shouldn't be loosely compared to true in wp_xmlrpc_server::wp_deleteComment().
$initial shouldn't be loosely compared to true in get_calendar().
current_user_can() shouldn't be loosely compared to false in kses_init()
$get_all shouldn't be loosely compared to true in get_blog_details().
is_array() and in_array() shouldn't be loosely compared in wpmu_validate_user_signup().
$result should by strictly compared in check_ajax_referer().
wp_verify_nonce() should by strictly compared in _show_post_preview().
is_user_logged_in() should not be loosly compared against false in wp-signup.php.

See #32444.

File:
1 edited

Legend:

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

    r32598 r32733  
    16461646
    16471647    foreach ( $myweek as $wd ) {
    1648         $day_name = (true == $initial) ? $wp_locale->get_weekday_initial($wd) : $wp_locale->get_weekday_abbrev($wd);
     1648        $day_name = $initial ? $wp_locale->get_weekday_initial($wd) : $wp_locale->get_weekday_abbrev($wd);
    16491649        $wd = esc_attr($wd);
    16501650        $calendar_output .= "\n\t\t<th scope=\"col\" title=\"$wd\">$day_name</th>";
Note: See TracChangeset for help on using the changeset viewer.