From 9de019afeb6de328b95c1c8f85f7780709d9f7a8 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 27 Jan 2017 14:09:47 -0500 Subject: [PATCH] Switch cap needed for server stats. Use the edit other pages --- Gaslightify.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gaslightify.php b/Gaslightify.php index 4fa1fda..068abb4 100755 --- a/Gaslightify.php +++ b/Gaslightify.php @@ -4,7 +4,7 @@ Plugin Name: Gaslightify Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates Description: A gasline to a Wordpress website. -Version: 1.5.5 +Version: 1.5.6 Author: Gaslight Media Author URI: http://www.gaslightmedia.com License: Gaslight Media @@ -191,7 +191,7 @@ function glm_stats(){ '; } function Gaslightify_menu() { - if ( current_user_can( 'edit_others_posts' ) ) { + if ( current_user_can( 'edit_others_pages' ) ) { add_menu_page('Server Stats', 'Server Stats', 'edit_posts', 'glm_stats', 'glm_stats', 'dashicons-chart-area'); if (class_exists('Ninja_Forms')) { add_menu_page('Form Submissions', 'Form Submissions', 'edit_posts', 'edit.php?post_type=nf_sub', '', 'dashicons-feedback'); -- 2.17.1