ARI Adminer – WordPress Database Manager - Version 1.1.7

Version Description

  • Show quick icon on frontend part and take into account role of current user
Download this release

Release Info

Developer arisoft
Plugin Icon 128x128 ARI Adminer – WordPress Database Manager
Version 1.1.7
Comparing to
See all releases

Code changes from version 1.1.6 to 1.1.7

ari-adminer.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: ARI Adminer
4
  Plugin URI: http://wp-quiz.ari-soft.com/plugins/wordpress-adminer.html
5
  Description: Powerful, compact and easy to use database manager plugin for WordPress.
6
- Version: 1.1.6
7
  Author: ARI Soft
8
  Author URI: http://www.ari-soft.com
9
  Text Domain: ari-adminer
3
  Plugin Name: ARI Adminer
4
  Plugin URI: http://wp-quiz.ari-soft.com/plugins/wordpress-adminer.html
5
  Description: Powerful, compact and easy to use database manager plugin for WordPress.
6
+ Version: 1.1.7
7
  Author: ARI Soft
8
  Author URI: http://www.ari-soft.com
9
  Text Domain: ari-adminer
includes/class-plugin.php CHANGED
@@ -13,7 +13,9 @@ class Plugin extends Ari_Plugin {
13
  add_action( 'clear_auth_cookie', function() { $this->clear_session(); } );
14
  }
15
 
16
- if ( ! is_admin() )
 
 
17
  return ;
18
 
19
  $this->load_translations();
@@ -94,9 +96,6 @@ class Plugin extends Ari_Plugin {
94
  private function admin_init() {
95
  Settings::init();
96
 
97
- if ( Settings::get_option( 'show_quick_icon' ) )
98
- $this->add_quick_icon();
99
-
100
  $no_header = (bool) Request::get_var( 'noheader' );
101
 
102
  if ( ! $no_header ) {
@@ -113,6 +112,10 @@ class Plugin extends Ari_Plugin {
113
  }
114
 
115
  private function add_quick_icon() {
 
 
 
 
116
  add_action( 'admin_bar_menu', function( $admin_bar ) {
117
  $admin_bar->add_menu(
118
  array(
13
  add_action( 'clear_auth_cookie', function() { $this->clear_session(); } );
14
  }
15
 
16
+ $this->add_quick_icon();
17
+
18
+ if ( ! is_admin() )
19
  return ;
20
 
21
  $this->load_translations();
96
  private function admin_init() {
97
  Settings::init();
98
 
 
 
 
99
  $no_header = (bool) Request::get_var( 'noheader' );
100
 
101
  if ( ! $no_header ) {
112
  }
113
 
114
  private function add_quick_icon() {
115
+ if ( ! Settings::get_option( 'show_quick_icon' ) || ! current_user_can( ARIADMINER_CAPABILITY_RUN ) ) {
116
+ return ;
117
+ }
118
+
119
  add_action( 'admin_bar_menu', function( $admin_bar ) {
120
  $admin_bar->add_menu(
121
  array(
includes/defines.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- define( 'ARIADMINER_VERSION', '1.1.6' );
3
  define( 'ARIADMINER_SLUG', 'ari-adminer' );
4
  define( 'ARIADMINER_ASSETS_URL', ARIADMINER_URL . 'assets/' );
5
  define( 'ARIADMINER_VERSION_OPTION', 'ari_adminer' );
1
  <?php
2
+ define( 'ARIADMINER_VERSION', '1.1.7' );
3
  define( 'ARIADMINER_SLUG', 'ari-adminer' );
4
  define( 'ARIADMINER_ASSETS_URL', ARIADMINER_URL . 'assets/' );
5
  define( 'ARIADMINER_VERSION_OPTION', 'ari_adminer' );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wp-quiz.ari-soft.com/plugins/wordpress-adminer.html
4
  Tags: adminer, sql, database, mysql, report, sqlite, table, postgresql, dump, backup, import, export, phpmyadmin
5
  Requires at least: 3.4
6
  Tested up to: 4.9.1
7
- Stable tag: 1.1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -74,6 +74,9 @@ Sure, it is available [here](http://www.ari-soft.com/docs/wordpress/ari-adminer/
74
 
75
  == Changelog ==
76
 
 
 
 
77
  = 1.1.6 =
78
  * Add 'Show quick icon' parameter to plugin settings
79
 
@@ -126,6 +129,9 @@ Sure, it is available [here](http://www.ari-soft.com/docs/wordpress/ari-adminer/
126
 
127
  == Upgrade Notice ==
128
 
 
 
 
129
  = 1.1.6 =
130
  * Add 'Show quick icon' parameter to plugin settings
131
 
4
  Tags: adminer, sql, database, mysql, report, sqlite, table, postgresql, dump, backup, import, export, phpmyadmin
5
  Requires at least: 3.4
6
  Tested up to: 4.9.1
7
+ Stable tag: 1.1.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
74
 
75
  == Changelog ==
76
 
77
+ = 1.1.7 =
78
+ * Show quick icon on frontend part and take into account role of current user
79
+
80
  = 1.1.6 =
81
  * Add 'Show quick icon' parameter to plugin settings
82
 
129
 
130
  == Upgrade Notice ==
131
 
132
+ = 1.1.7 =
133
+ * Show quick icon on frontend part and take into account role of current user
134
+
135
  = 1.1.6 =
136
  * Add 'Show quick icon' parameter to plugin settings
137