mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 06:33:50 +09:00
Version 1.0.35
This commit is contained in:
@@ -348,7 +348,7 @@ class UM_Admin_Metabox {
|
||||
|
||||
$where = array( 'ID' => $post_id );
|
||||
if (empty($_POST['post_title'])) $_POST['post_title'] = 'Role #'.$post_id;
|
||||
$wpdb->update( $wpdb->posts, array( 'post_title' => $_POST['post_title'] ), $where );
|
||||
$wpdb->update( $wpdb->posts, array( 'post_title' => $_POST['post_title'], 'post_name' => wp_unique_post_slug( sanitize_title( $_POST['post_title'] ) ) ), $where );
|
||||
|
||||
// save
|
||||
delete_post_meta( $post_id, '_um_can_view_roles' );
|
||||
|
||||
Reference in New Issue
Block a user