Changeset 44260 for trunk/src/wp-admin/post.php
- Timestamp:
- 12/17/2018 03:51:08 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/5.0 merged: 43861,43863
- Property svn:mergeinfo changed
-
trunk/src/wp-admin/post.php
r44165 r44260 313 313 exit(); 314 314 315 case 'toggle-custom-fields': 316 check_admin_referer( 'toggle-custom-fields' ); 317 318 $current_user_id = get_current_user_id(); 319 if ( $current_user_id ) { 320 $enable_custom_fields = (bool) get_user_meta( $current_user_id, 'enable_custom_fields', true ); 321 update_user_meta( $current_user_id, 'enable_custom_fields', ! $enable_custom_fields ); 322 } 323 324 wp_safe_redirect( wp_get_referer() ); 325 exit(); 326 315 327 default: 316 328 /**
Note: See TracChangeset
for help on using the changeset viewer.