Changeset 1640871
- Timestamp:
- 04/19/2017 08:08:30 PM (9 years ago)
- Location:
- plugins-admin-bar
- Files:
-
- 86 added
- 2 edited
-
tags/1.2 (added)
-
tags/1.2/.git (added)
-
tags/1.2/.git/COMMIT_EDITMSG (added)
-
tags/1.2/.git/FETCH_HEAD (added)
-
tags/1.2/.git/HEAD (added)
-
tags/1.2/.git/ORIG_HEAD (added)
-
tags/1.2/.git/config (added)
-
tags/1.2/.git/index (added)
-
tags/1.2/.git/logs (added)
-
tags/1.2/.git/logs/HEAD (added)
-
tags/1.2/.git/logs/refs (added)
-
tags/1.2/.git/logs/refs/heads (added)
-
tags/1.2/.git/logs/refs/heads/develop (added)
-
tags/1.2/.git/logs/refs/heads/master (added)
-
tags/1.2/.git/logs/refs/remotes (added)
-
tags/1.2/.git/logs/refs/remotes/origin (added)
-
tags/1.2/.git/logs/refs/remotes/origin/HEAD (added)
-
tags/1.2/.git/logs/refs/remotes/origin/develop (added)
-
tags/1.2/.git/logs/refs/remotes/origin/master (added)
-
tags/1.2/.git/objects (added)
-
tags/1.2/.git/objects/0a (added)
-
tags/1.2/.git/objects/0a/e15fdfd050f0efa4abbee5e12616dfa0d588b1 (added)
-
tags/1.2/.git/objects/11 (added)
-
tags/1.2/.git/objects/11/263c8f78c4725e75fba7967399f8fc060ce080 (added)
-
tags/1.2/.git/objects/1f (added)
-
tags/1.2/.git/objects/1f/3f769506f3ede68a6a0a35c0c1d05befdcf3ef (added)
-
tags/1.2/.git/objects/23 (added)
-
tags/1.2/.git/objects/23/e9f99c1f89a3887571ca67f1895a63a6f79a07 (added)
-
tags/1.2/.git/objects/2a (added)
-
tags/1.2/.git/objects/2a/188f5bdfea4ff3eca8edc496bed84252cb575e (added)
-
tags/1.2/.git/objects/2b (added)
-
tags/1.2/.git/objects/2b/b5107bd5b19f4f7aeee3617651e3dc070edb91 (added)
-
tags/1.2/.git/objects/32 (added)
-
tags/1.2/.git/objects/32/acf3f2e53422a59d1efc3f339315f8936d58d9 (added)
-
tags/1.2/.git/objects/46 (added)
-
tags/1.2/.git/objects/46/e636e4af4f02c6c64175362497da67642deb2a (added)
-
tags/1.2/.git/objects/4e (added)
-
tags/1.2/.git/objects/4e/e1f833a47536356635a774b7f93c14f3075d66 (added)
-
tags/1.2/.git/objects/55 (added)
-
tags/1.2/.git/objects/55/1a474886c6e0698ff982948d6ed8af0da4f456 (added)
-
tags/1.2/.git/objects/6a (added)
-
tags/1.2/.git/objects/6a/01f6579b5f9ec5f3d178bf95aa6bf0c4b44de7 (added)
-
tags/1.2/.git/objects/71 (added)
-
tags/1.2/.git/objects/71/7b1b8147cda43b9926f61ac1edf6cc9b4ebece (added)
-
tags/1.2/.git/objects/84 (added)
-
tags/1.2/.git/objects/84/aa0423cd7dc89be0cf18c46048501413c7cba9 (added)
-
tags/1.2/.git/objects/89 (added)
-
tags/1.2/.git/objects/89/26b68acbd572494afdbdb734affcec890552f9 (added)
-
tags/1.2/.git/objects/8a (added)
-
tags/1.2/.git/objects/8a/859ba9d09fcded3b248e939048b7393ba240c2 (added)
-
tags/1.2/.git/objects/9c (added)
-
tags/1.2/.git/objects/9c/ecc1d4669ee8af2ca727a5d8cde10cd8b2d7cc (added)
-
tags/1.2/.git/objects/a4 (added)
-
tags/1.2/.git/objects/a4/008443c937ec6f0a6f631cd15c09e16ae137c0 (added)
-
tags/1.2/.git/objects/c7 (added)
-
tags/1.2/.git/objects/c7/0bba694131be7193b245fd4ab9dcd4e4428a75 (added)
-
tags/1.2/.git/objects/d0 (added)
-
tags/1.2/.git/objects/d0/81cb231d138df84676f4a04a0f265c2213c17a (added)
-
tags/1.2/.git/objects/d2 (added)
-
tags/1.2/.git/objects/d2/af630b5fa12dc1bce50321d75883e5b96feb09 (added)
-
tags/1.2/.git/objects/da (added)
-
tags/1.2/.git/objects/da/87821ab53a9185aeb9c2b8204e8f03f7678b9f (added)
-
tags/1.2/.git/objects/ec (added)
-
tags/1.2/.git/objects/ec/5b294a15268d8d16951441c8afb6b1930417ae (added)
-
tags/1.2/.git/objects/f3 (added)
-
tags/1.2/.git/objects/f3/3c27a304be413da5e06d0d368f4a586ff626eb (added)
-
tags/1.2/.git/objects/f3/522aa0ca014a608df136cf8eba38417cf0230d (added)
-
tags/1.2/.git/objects/f8 (added)
-
tags/1.2/.git/objects/f8/30352ad0c13abf20c0dd9c4904e9ce23b9b219 (added)
-
tags/1.2/.git/objects/info (added)
-
tags/1.2/.git/objects/pack (added)
-
tags/1.2/.git/packed-refs (added)
-
tags/1.2/.git/refs (added)
-
tags/1.2/.git/refs/heads (added)
-
tags/1.2/.git/refs/heads/develop (added)
-
tags/1.2/.git/refs/heads/master (added)
-
tags/1.2/.git/refs/remotes (added)
-
tags/1.2/.git/refs/remotes/origin (added)
-
tags/1.2/.git/refs/remotes/origin/HEAD (added)
-
tags/1.2/.git/refs/remotes/origin/develop (added)
-
tags/1.2/.git/refs/remotes/origin/master (added)
-
tags/1.2/.git/refs/tags (added)
-
tags/1.2/.git/sourcetreeconfig (added)
-
tags/1.2/LICENSE (added)
-
tags/1.2/plugins-admin-bar.php (added)
-
tags/1.2/readme.txt (added)
-
trunk/plugins-admin-bar.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins-admin-bar/trunk/plugins-admin-bar.php
r1639327 r1640871 2 2 /** 3 3 * Plugin Name: Plugins Admin Bar 4 * Plugin URI: https:// github.com/KrashKartMedia/plugins-admin-bar4 * Plugin URI: https://wordpress.org/plugins/plugins-admin-bar/ 5 5 * Description: Add a top level menu item to the admin bar for plugin links. 6 * Version: 1. 16 * Version: 1.2 7 7 * Author: Russell Aaron 8 8 * Author URI: http://russellenvy.com … … 13 13 // hook into admin bar-menu - add our own links 14 14 add_action('admin_bar_menu', 'plugins_admin_bar_links', 999); 15 15 16 //kick off the function 16 17 function plugins_admin_bar_links($wp_admin_bar) { 17 //is multisite 18 if ( is_multisite() ) { 18 $plugins_menu_perms = get_site_option( 'menu_items' ); 19 //is multisite && user can manage_network_plugins 20 if ( is_multisite() && current_user_can('manage_network_options') ) { 19 21 //network parent link under site-name 20 22 $args = array( … … 149 151 ); 150 152 $wp_admin_bar->add_node($args); 151 } 152 //is_single_site 153 else { 154 $args = array( 153 154 //is multisite && user can manage_network_plugins 155 } 156 157 //is_multisite && current user can manage options && plugins menu site option is true 158 else if ( is_multisite() && current_user_can( 'manage_options' ) && isset($plugins_menu_perms['plugins'] ) ) { 159 $args = array( 160 'id' => 'network-single-admin-plugins', 161 'title' => 'Plugins'. print_r($plugins_checked,1), 162 'href' => admin_url() . 'plugins.php', 163 'parent' => 'site-name', 164 'meta' => array( 165 'class' => 'network-single-admin-plugins', 166 'title' => 'View Plugins' 167 ) 168 ); 169 $wp_admin_bar->add_node($args); 170 171 //Add Active Plugin Child Link to installed-plugins - single site on MS parent link 172 $args = array( 173 'id' => 'network-single-admin-plugins-active', 174 'title' => 'Active Plugins', 175 'href' => admin_url() . 'plugins.php?plugin_status=active', 176 'parent' => 'network-single-admin-plugins', 177 'meta' => array( 178 'class' => 'network-single-admin-plugins-', 179 'title' => 'Active Plugins' 180 ) 181 ); 182 $wp_admin_bar->add_node($args); 183 184 //Add Inactive Plugin Child Link to installed-plugins - single site on MS parent link 185 $args = array( 186 'id' => 'network-single-admin-plugins-inactive', 187 'title' => 'Inactive Plugins', 188 'href' => admin_url() . 'plugins.php?plugin_status=inactive', 189 'parent' => 'network-single-admin-plugins', 190 'meta' => array( 191 'class' => 'network-single-admin-plugins-inactive', 192 'title' => 'Inactive Plugins' 193 ) 194 ); 195 $wp_admin_bar->add_node($args); 196 197 //is_multisite && current user can manage options && plugins menu site option is true 198 } 199 200 //is_single_site && user can manage_options 201 else if ( ! is_multisite() && current_user_can('manage_options') ) { 202 $args = array( 155 203 'id' => 'single-plugins', 156 204 'title' => 'Plugins', … … 242 290 $wp_admin_bar->add_node($args); 243 291 292 //is_single_site && user can manage_options 244 293 } 245 //stop plugins_admin_bar_links funciton294 //kick off the function 246 295 } 247 296 ?> -
plugins-admin-bar/trunk/readme.txt
r1639328 r1640871 1 1 === Plugins Admin Bar - WordPress Plugin Adding Plugin Link To WP Admin Bar Sub Menu === 2 Contributors: GeekStreetWP 2 Contributors: GeekStreetWP, binarygary 3 3 Author URI: https://wordpress.org/plugins/plugins-admin-bar/ 4 4 Tags: plugin, plugins, admin, wp-admin-bar, 5 5 Requires at least: 4.1 6 6 Tested up to: 4.7.3 7 Stable tag: 1. 17 Stable tag: 1.2 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Plugins Admin Bar is a free WordPress Plugin that adds a link to the WordPress Admin Bar, under the site name menu.11 Plugins Admin Bar is a free WordPress Plugin that adds quick links to the WordPress Admin Bar, under the site name menu, for plugins and network plugins on multisite. 12 12 13 13 == Description == … … 17 17 WordPress has the WP Admin Bar at the top of every site. On the front end of the site, you'll see the name of your site as a link to /wp-admin/. Under the Site Name, there is a sub-menu with quick links to the Dashboard, Themes, Widgets, and Menus. 18 18 19 = What shows up when the plugin is installed on a single install of WordPress? = 19 20 20 21 Plugin Admin Bar adds a new menu item to the quick links sub-menu, called Plugins, for a single site install. 22 21 23 The new menu item has it's own sub menu with quick links to Add a new plugin, add new popular plugin, add new recommended plugin, add new favorite plugin, view active plugins, and view inactive plugins. 22 24 23 Plugin Admin Bar adds two new menu item to the quick links sub-menu, called Plugins and Network Plugins, for a multisite install. The two new menu items have their own sub menu items with quick links to Add a new network plugin, add new popular plugin, add new recommended plugin, add new favorite plugin, view network active plugins, and view network inactive plugins, and view network must use plugins. You can also view plugins active or inactive for a single site. 25 = What shows up when the plugin is installed on a multisite install of WordPress and I am a Super Admin? = 26 27 Plugin Admin Bar adds two new menu item to the quick links sub-menu, called Plugins and Network Plugins, for a multisite install, as long as you are the Super Admin of the multisite network. 28 29 The two new menu items have their own sub menu items with quick links to Add a new network plugin, add new popular plugin, add new recommended plugin, add new favorite plugin, view network active plugins, and view network inactive plugins, and view network must use plugins. You can also view plugins active or inactive for a single site. 30 31 = What shows up when the plugin is installed on a multisite install of WordPress and I am an Admin? = 32 33 If you are a single site admin, on multisite, you'll only see all plugins, active & inactive plugins in the dropdown menu item. 24 34 25 35 See screenshots for more information. … … 31 41 = Does this work with Multisite? = 32 42 33 Yes. If you're on mutisite, add new plugin link takes you to the newtowrk admin install page. Same for the edit plugins. 43 Yes. If you're on multisite, add new plugin link takes you to the network admin install page. Same for the edit plugins. 44 45 = Why doesnt the plugins menu item show for site admins of a subdomain/subfoler site? = 46 47 There is an option in the Network Settings where a network admin (Super Admin) has to select the option to show the plugins menu in the left naviagtion bar for admins of a single Multisite site. 34 48 35 49 == Installation == … … 66 80 == Changelog == 67 81 82 = 1.2 = 83 * Added: Conditional Checks for Multisite vs. Single Site. 84 * Added: If muiltisite && current user can managae options, show the full network & plugins menus. 85 * Added If is not multisite && current user can manage options, show full plugins menu. 86 * Added: There is a setting in multisite where a network admin (Super Admin) must choose to show the plugins menu item for Multisite single site admins. If selected, a site admin will see the drop down displaying all plugins, active and inactive plugins just for the specific site. 87 * Fixed: Typo in the FAQ section on Readme.txt. 88 * Updated: FAQ section on Readme.txt file answers more questions. 89 68 90 = 1.1 = 69 91 * Added: Support for multisite.
Note: See TracChangeset
for help on using the changeset viewer.