Make WordPress Core


Ignore:
Timestamp:
12/07/2008 03:53:28 AM (16 years ago)
Author:
ryan
Message:

Make wp_user_settings() options global again. Clarify flag on get_user_option().

File:
1 edited

Legend:

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

    r9871 r10095  
    169169 * @param string $option User option name.
    170170 * @param int $user Optional. User ID.
    171  * @param bool $check_global Whether to check for a global option if 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.
    172172 * @return mixed
    173173 */
    174 function get_user_option( $option, $user = 0, $check_global = true ) {
     174function get_user_option( $option, $user = 0, $check_blog_options = true ) {
    175175    global $wpdb;
    176176
     
    185185    elseif ( isset( $user->{$option} ) ) // User specific and cross-blog
    186186        $result = $user->{$option};
    187     elseif ( $check_global ) // Blog global
     187    elseif ( $check_blog_options ) // Blog global
    188188        $result = get_option( $option );
    189189    else
Note: See TracChangeset for help on using the changeset viewer.