Make WordPress Core


Ignore:
Timestamp:
08/16/2009 06:30:52 AM (15 years ago)
Author:
westi
Message:

Make the operator precedence obvious by using parenthesis.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/update.php

    r11826 r11829  
    4848
    4949    $options = array(
    50         'timeout' => defined('DOING_CRON') && DOING_CRON ? 30 : 3,
     50        'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3),
    5151        'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' )
    5252    );
     
    147147
    148148    $options = array(
    149         'timeout' => defined('DOING_CRON') && DOING_CRON ? 30 : 3,
     149        'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3),
    150150        'body' => array( 'plugins' => serialize( $to_send ) ),
    151151        'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' )
     
    241241
    242242    $options = array(
    243         'timeout' => defined('DOING_CRON') && DOING_CRON ? 30 : 3,
     243        'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3),
    244244        'body'          => array( 'themes' => serialize( $themes ) ),
    245245        'user-agent'    => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' )
Note: See TracChangeset for help on using the changeset viewer.