From 9a5c4262261154d57e773ff5ddd47faf4a02a5ab Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 16 Aug 2009 06:30:52 +0000 Subject: [PATCH] Make the operator precedence obvious by using parenthesis. git-svn-id: https://develop.svn.wordpress.org/trunk@11829 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/update.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/update.php b/wp-includes/update.php index 65bfc91d5f..4cb7df4790 100644 --- a/wp-includes/update.php +++ b/wp-includes/update.php @@ -47,7 +47,7 @@ function wp_version_check() { $url = "http://api.wordpress.org/core/version-check/1.3/?version=$wp_version&php=$php_version&locale=$locale&mysql=$mysql_version&local_package=$local_package"; $options = array( - 'timeout' => defined('DOING_CRON') && DOING_CRON ? 30 : 3, + 'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3), 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) ); @@ -146,7 +146,7 @@ function wp_update_plugins() { $to_send = (object)compact('plugins', 'active'); $options = array( - 'timeout' => defined('DOING_CRON') && DOING_CRON ? 30 : 3, + 'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3), 'body' => array( 'plugins' => serialize( $to_send ) ), 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) ); @@ -240,7 +240,7 @@ function wp_update_themes( ) { $current_theme->template = get_option( 'template' ); $options = array( - 'timeout' => defined('DOING_CRON') && DOING_CRON ? 30 : 3, + 'timeout' => ( ( defined('DOING_CRON') && DOING_CRON ) ? 30 : 3), 'body' => array( 'themes' => serialize( $themes ) ), 'user-agent' => 'WordPress/' . $wp_version . '; ' . get_bloginfo( 'url' ) );