From a96753c93178bff62637d36bf06d087f85455678 Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Fri, 8 Dec 2017 10:51:45 +0200 Subject: [PATCH] - fixed capabilities for UM custom post types; --- includes/core/class-common.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/includes/core/class-common.php b/includes/core/class-common.php index 21fe5efd..2f4024c2 100644 --- a/includes/core/class-common.php +++ b/includes/core/class-common.php @@ -34,14 +34,14 @@ if ( ! class_exists( 'Common' ) ) { 'search_items' => __('Search Forms') ), 'capabilities' => array( - 'edit_post' => 'update_core', - 'read_post' => 'update_core', - 'delete_post' => 'update_core', - 'edit_posts' => 'update_core', - 'edit_others_posts' => 'update_core', - 'delete_posts' => 'update_core', - 'publish_posts' => 'update_core', - 'read_private_posts' => 'update_core' + 'edit_post' => 'manage_options', + 'read_post' => 'manage_options', + 'delete_post' => 'manage_options', + 'edit_posts' => 'manage_options', + 'edit_others_posts' => 'manage_options', + 'delete_posts' => 'manage_options', + 'publish_posts' => 'manage_options', + 'read_private_posts' => 'manage_options' ), 'show_ui' => true, 'show_in_menu' => false, @@ -63,14 +63,14 @@ if ( ! class_exists( 'Common' ) ) { 'search_items' => __('Search Member Directories') ), 'capabilities' => array( - 'edit_post' => 'update_core', - 'read_post' => 'update_core', - 'delete_post' => 'update_core', - 'edit_posts' => 'update_core', - 'edit_others_posts' => 'update_core', - 'delete_posts' => 'update_core', - 'publish_posts' => 'update_core', - 'read_private_posts' => 'update_core' + 'edit_post' => 'manage_options', + 'read_post' => 'manage_options', + 'delete_post' => 'manage_options', + 'edit_posts' => 'manage_options', + 'edit_others_posts' => 'manage_options', + 'delete_posts' => 'manage_options', + 'publish_posts' => 'manage_options', + 'read_private_posts' => 'manage_options' ), 'show_ui' => true, 'show_in_menu' => false,