From: Steve Sutton Date: Fri, 27 Jan 2017 19:09:47 +0000 (-0500) Subject: Switch cap needed for server stats. X-Git-Tag: v1.5.6^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9de019afeb6de328b95c1c8f85f7780709d9f7a8;p=WP-Plugins%2FGaslightify.git Switch cap needed for server stats. Use the edit other pages --- 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');