Changeset 10095 for trunk/wp-includes/user.php
- Timestamp:
- 12/07/2008 03:53:28 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/user.php
r9871 r10095 169 169 * @param string $option User option name. 170 170 * @param int $user Optional. User ID. 171 * @param bool $check_ global Whether to check for a global optionif a per-user option does not exist. Default is true.171 * @param bool $check_blog_options Whether to check for an option in the options table if a per-user option does not exist. Default is true. 172 172 * @return mixed 173 173 */ 174 function get_user_option( $option, $user = 0, $check_ global= true ) {174 function get_user_option( $option, $user = 0, $check_blog_options = true ) { 175 175 global $wpdb; 176 176 … … 185 185 elseif ( isset( $user->{$option} ) ) // User specific and cross-blog 186 186 $result = $user->{$option}; 187 elseif ( $check_ global) // Blog global187 elseif ( $check_blog_options ) // Blog global 188 188 $result = get_option( $option ); 189 189 else
Note: See TracChangeset
for help on using the changeset viewer.