mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Fix metabox hiding. Props scribu. fixes #12439
git-svn-id: https://develop.svn.wordpress.org/trunk@13551 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -203,7 +203,6 @@ function get_user_option( $option, $user = 0, $deprecated = '' ) {
|
||||
if ( !empty( $deprecated ) )
|
||||
_deprecated_argument( __FUNCTION__, '3.0' );
|
||||
|
||||
$option = preg_replace('|[^a-z0-9_]|i', '', $option);
|
||||
if ( empty($user) )
|
||||
$user = wp_get_current_user();
|
||||
else
|
||||
@@ -237,6 +236,7 @@ function get_user_option( $option, $user = 0, $deprecated = '' ) {
|
||||
*/
|
||||
function update_user_option( $user_id, $option_name, $newvalue, $global = false ) {
|
||||
global $wpdb;
|
||||
|
||||
if ( !$global )
|
||||
$option_name = $wpdb->prefix . $option_name;
|
||||
return update_user_meta( $user_id, $option_name, $newvalue );
|
||||
@@ -666,4 +666,4 @@ function clean_user_cache($id) {
|
||||
wp_cache_delete($user->user_nicename, 'userslugs');
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user