Why global first about update_user_option()?
-
function update_user_option( $user_id, $option_name, $newvalue, $global = false ) { global $wpdb; if ( !$global ) $option_name = $wpdb->get_blog_prefix() . $option_name; return update_user_meta( $user_id, $option_name, $newvalue ); }
I read the source code and I don’t know why
global $wpdb
first.
Why not global after theif ( !$global )
condition? It it working faster, right?
- The topic ‘Why global first about update_user_option()?’ is closed to new replies.