Changeset 50981 for trunk/src/wp-admin/includes/ajax-actions.php
- Timestamp:
- 05/24/2021 07:58:13 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r50831 r50981 375 375 */ 376 376 if ( $ip_changed || $search ) { 377 update_user_ option( $user_id, 'community-events-location', $events['location'], true);377 update_user_meta( $user_id, 'community-events-location', $events['location'] ); 378 378 } 379 379 … … 1734 1734 1735 1735 if ( is_array( $closed ) ) { 1736 update_user_ option( $user->ID, "closedpostboxes_$page", $closed, true);1736 update_user_meta( $user->ID, "closedpostboxes_$page", $closed ); 1737 1737 } 1738 1738 … … 1740 1740 // Postboxes that are always shown. 1741 1741 $hidden = array_diff( $hidden, array( 'submitdiv', 'linksubmitdiv', 'manage-menu', 'create-menu' ) ); 1742 update_user_ option( $user->ID, "metaboxhidden_$page", $hidden, true);1742 update_user_meta( $user->ID, "metaboxhidden_$page", $hidden ); 1743 1743 } 1744 1744 … … 1765 1765 1766 1766 $hidden = ! empty( $_POST['hidden'] ) ? explode( ',', $_POST['hidden'] ) : array(); 1767 update_user_ option( $user->ID, "manage{$page}columnshidden", $hidden, true);1767 update_user_meta( $user->ID, "manage{$page}columnshidden", $hidden ); 1768 1768 1769 1769 wp_die( 1 ); … … 1920 1920 1921 1921 if ( $order ) { 1922 update_user_ option( $user->ID, "meta-box-order_$page", $order, true);1922 update_user_meta( $user->ID, "meta-box-order_$page", $order ); 1923 1923 } 1924 1924 1925 1925 if ( $page_columns ) { 1926 update_user_ option( $user->ID, "screen_layout_$page", $page_columns, true);1926 update_user_meta( $user->ID, "screen_layout_$page", $page_columns ); 1927 1927 } 1928 1928
Note: See TracChangeset
for help on using the changeset viewer.