Changeset 1672907
- Timestamp:
- 06/07/2017 11:11:10 PM (9 years ago)
- Location:
- plugins-admin-bar
- Files:
-
- 126 added
- 2 edited
-
tags/1.4 (added)
-
tags/1.4/.git (added)
-
tags/1.4/.git/COMMIT_EDITMSG (added)
-
tags/1.4/.git/FETCH_HEAD (added)
-
tags/1.4/.git/HEAD (added)
-
tags/1.4/.git/ORIG_HEAD (added)
-
tags/1.4/.git/config (added)
-
tags/1.4/.git/index (added)
-
tags/1.4/.git/logs (added)
-
tags/1.4/.git/logs/HEAD (added)
-
tags/1.4/.git/logs/refs (added)
-
tags/1.4/.git/logs/refs/heads (added)
-
tags/1.4/.git/logs/refs/heads/develop (added)
-
tags/1.4/.git/logs/refs/heads/master (added)
-
tags/1.4/.git/logs/refs/remotes (added)
-
tags/1.4/.git/logs/refs/remotes/origin (added)
-
tags/1.4/.git/logs/refs/remotes/origin/HEAD (added)
-
tags/1.4/.git/logs/refs/remotes/origin/develop (added)
-
tags/1.4/.git/logs/refs/remotes/origin/master (added)
-
tags/1.4/.git/objects (added)
-
tags/1.4/.git/objects/0a (added)
-
tags/1.4/.git/objects/0a/e15fdfd050f0efa4abbee5e12616dfa0d588b1 (added)
-
tags/1.4/.git/objects/11 (added)
-
tags/1.4/.git/objects/11/263c8f78c4725e75fba7967399f8fc060ce080 (added)
-
tags/1.4/.git/objects/17 (added)
-
tags/1.4/.git/objects/17/7b95323de2b05ec9326e361059d491293fa4af (added)
-
tags/1.4/.git/objects/1f (added)
-
tags/1.4/.git/objects/1f/3f769506f3ede68a6a0a35c0c1d05befdcf3ef (added)
-
tags/1.4/.git/objects/22 (added)
-
tags/1.4/.git/objects/22/b801e33ad3b0f9bda4d984c82100a53a5365d8 (added)
-
tags/1.4/.git/objects/23 (added)
-
tags/1.4/.git/objects/23/e9f99c1f89a3887571ca67f1895a63a6f79a07 (added)
-
tags/1.4/.git/objects/26 (added)
-
tags/1.4/.git/objects/26/edf1a3144dbf8b4af7f6f5865d791124953bf8 (added)
-
tags/1.4/.git/objects/2a (added)
-
tags/1.4/.git/objects/2a/188f5bdfea4ff3eca8edc496bed84252cb575e (added)
-
tags/1.4/.git/objects/2b (added)
-
tags/1.4/.git/objects/2b/b5107bd5b19f4f7aeee3617651e3dc070edb91 (added)
-
tags/1.4/.git/objects/32 (added)
-
tags/1.4/.git/objects/32/acf3f2e53422a59d1efc3f339315f8936d58d9 (added)
-
tags/1.4/.git/objects/33 (added)
-
tags/1.4/.git/objects/33/d1da052dabd8da6dec5b83307eba7ba7792ee3 (added)
-
tags/1.4/.git/objects/33/ea2ce763ec5181fc8f54ff7fc66e7e461e91c0 (added)
-
tags/1.4/.git/objects/42 (added)
-
tags/1.4/.git/objects/42/4acbbe941d97946747005fb1cd3bc03385e8d7 (added)
-
tags/1.4/.git/objects/46 (added)
-
tags/1.4/.git/objects/46/a1f901c0f4bc5bfeeff33c2e62cf134e346c8e (added)
-
tags/1.4/.git/objects/46/e636e4af4f02c6c64175362497da67642deb2a (added)
-
tags/1.4/.git/objects/4e (added)
-
tags/1.4/.git/objects/4e/e1f833a47536356635a774b7f93c14f3075d66 (added)
-
tags/1.4/.git/objects/55 (added)
-
tags/1.4/.git/objects/55/1a474886c6e0698ff982948d6ed8af0da4f456 (added)
-
tags/1.4/.git/objects/6a (added)
-
tags/1.4/.git/objects/6a/01f6579b5f9ec5f3d178bf95aa6bf0c4b44de7 (added)
-
tags/1.4/.git/objects/6c (added)
-
tags/1.4/.git/objects/6c/6210efa27ebbb36277a20908c23936c4abc14e (added)
-
tags/1.4/.git/objects/6f (added)
-
tags/1.4/.git/objects/6f/a47bf775ef4d7e468749b370bf2bc9250a5a4a (added)
-
tags/1.4/.git/objects/71 (added)
-
tags/1.4/.git/objects/71/7b1b8147cda43b9926f61ac1edf6cc9b4ebece (added)
-
tags/1.4/.git/objects/7d (added)
-
tags/1.4/.git/objects/7d/8093f3510cb09df274afdd8c29c224ab197c58 (added)
-
tags/1.4/.git/objects/84 (added)
-
tags/1.4/.git/objects/84/aa0423cd7dc89be0cf18c46048501413c7cba9 (added)
-
tags/1.4/.git/objects/89 (added)
-
tags/1.4/.git/objects/89/26b68acbd572494afdbdb734affcec890552f9 (added)
-
tags/1.4/.git/objects/8a (added)
-
tags/1.4/.git/objects/8a/859ba9d09fcded3b248e939048b7393ba240c2 (added)
-
tags/1.4/.git/objects/8b (added)
-
tags/1.4/.git/objects/8b/b0c2d3f4a44271ca542fefac744179960bab89 (added)
-
tags/1.4/.git/objects/9c (added)
-
tags/1.4/.git/objects/9c/ecc1d4669ee8af2ca727a5d8cde10cd8b2d7cc (added)
-
tags/1.4/.git/objects/a1 (added)
-
tags/1.4/.git/objects/a1/f6767149ad2d53508ce0a6bf398e02b8e4445f (added)
-
tags/1.4/.git/objects/a4 (added)
-
tags/1.4/.git/objects/a4/008443c937ec6f0a6f631cd15c09e16ae137c0 (added)
-
tags/1.4/.git/objects/bf (added)
-
tags/1.4/.git/objects/bf/db079d2f0a2cb1ed95590597ac548d905836ee (added)
-
tags/1.4/.git/objects/c7 (added)
-
tags/1.4/.git/objects/c7/0bba694131be7193b245fd4ab9dcd4e4428a75 (added)
-
tags/1.4/.git/objects/d0 (added)
-
tags/1.4/.git/objects/d0/81cb231d138df84676f4a04a0f265c2213c17a (added)
-
tags/1.4/.git/objects/d2 (added)
-
tags/1.4/.git/objects/d2/af630b5fa12dc1bce50321d75883e5b96feb09 (added)
-
tags/1.4/.git/objects/d7 (added)
-
tags/1.4/.git/objects/d7/0e5a20dc4a685bc434bf78aaff23cca754ae9c (added)
-
tags/1.4/.git/objects/da (added)
-
tags/1.4/.git/objects/da/87821ab53a9185aeb9c2b8204e8f03f7678b9f (added)
-
tags/1.4/.git/objects/dc (added)
-
tags/1.4/.git/objects/dc/3e0a10a3175289e800e547c02266af61277e59 (added)
-
tags/1.4/.git/objects/e3 (added)
-
tags/1.4/.git/objects/e3/affb21dfafe7cae3206e27f20ae8ccd5dc9443 (added)
-
tags/1.4/.git/objects/ec (added)
-
tags/1.4/.git/objects/ec/5b294a15268d8d16951441c8afb6b1930417ae (added)
-
tags/1.4/.git/objects/ef (added)
-
tags/1.4/.git/objects/ef/90801f2911c6a64d17e2b308362b1da44c83c5 (added)
-
tags/1.4/.git/objects/f3 (added)
-
tags/1.4/.git/objects/f3/3c27a304be413da5e06d0d368f4a586ff626eb (added)
-
tags/1.4/.git/objects/f3/522aa0ca014a608df136cf8eba38417cf0230d (added)
-
tags/1.4/.git/objects/f4 (added)
-
tags/1.4/.git/objects/f4/046f73ee133d26ebb5b31c2d21f20696a8b4af (added)
-
tags/1.4/.git/objects/f6 (added)
-
tags/1.4/.git/objects/f6/3b58495be15ac4e32733fa444e3b16d92fe4c8 (added)
-
tags/1.4/.git/objects/f8 (added)
-
tags/1.4/.git/objects/f8/30352ad0c13abf20c0dd9c4904e9ce23b9b219 (added)
-
tags/1.4/.git/objects/f9 (added)
-
tags/1.4/.git/objects/f9/403331260d092448a9591a76c2ef65adbc279d (added)
-
tags/1.4/.git/objects/fd (added)
-
tags/1.4/.git/objects/fd/af897f2753ce9109663655d86b9b3173ee79be (added)
-
tags/1.4/.git/objects/info (added)
-
tags/1.4/.git/objects/pack (added)
-
tags/1.4/.git/packed-refs (added)
-
tags/1.4/.git/refs (added)
-
tags/1.4/.git/refs/heads (added)
-
tags/1.4/.git/refs/heads/develop (added)
-
tags/1.4/.git/refs/heads/master (added)
-
tags/1.4/.git/refs/remotes (added)
-
tags/1.4/.git/refs/remotes/origin (added)
-
tags/1.4/.git/refs/remotes/origin/HEAD (added)
-
tags/1.4/.git/refs/remotes/origin/develop (added)
-
tags/1.4/.git/refs/remotes/origin/master (added)
-
tags/1.4/.git/refs/tags (added)
-
tags/1.4/.git/sourcetreeconfig (added)
-
tags/1.4/LICENSE (added)
-
tags/1.4/plugins-admin-bar.php (added)
-
tags/1.4/readme.txt (added)
-
trunk/plugins-admin-bar.php (modified) (12 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins-admin-bar/trunk/plugins-admin-bar.php
r1640937 r1672907 4 4 * 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. 36 * Version: 1.4 7 7 * Author: Russell Aaron 8 8 * Author URI: http://russellenvy.com … … 19 19 //is multisite && user can manage_network_plugins 20 20 if ( is_multisite() && current_user_can('manage_network_options') ) { 21 //network parent link under site-name 21 //Adds New PLugin link to new-content tab 22 $args = array( 23 'id' => 'add-a-new-plugin-network-plugins', 24 'title' => esc_html__( 'Plugin', 'plugins-admin-bar' ), 25 'href' => esc_url( network_admin_url( '/plugin-install.php' ) ), 26 'parent' => 'new-content', 27 'meta' => array( 28 'class' => 'add-a-new-plugin-network-plugins', 29 'title' => esc_html__( 'Add A New Plugin', 'plugins-admin-bar' ), 30 ) 31 ); 32 $wp_admin_bar->add_node($args); 33 //Adds network parent link under site-name 22 34 $args = array( 23 35 'id' => 'network-plugins', … … 31 43 ); 32 44 $wp_admin_bar->add_node($args); 33 //Add New Network Plugin Child Link to network-plugins parent link34 $args = array(35 'id' => 'network-plugins-add-new',36 'title' => esc_html__( 'Add New Network Plugin', 'plugins-admin-bar' ),37 'href' => esc_url( network_admin_url( '/plugin-install.php' ) ),38 'parent' => 'network-plugins',39 'meta' => array(40 'class' => 'network-plugins-add-new',41 'title' => esc_html__( 'Add a new plugin to your network', 'plugins-admin-bar' ),42 )43 );44 $wp_admin_bar->add_node($args);45 45 //Add New Popular Plugin Child Link to network-plugins parent link 46 46 $args = array( … … 48 48 'title' => esc_html__( 'Add New Popular Plugin', 'plugins-admin-bar' ), 49 49 'href' => esc_url( network_admin_url( '/plugin-install.php?tab=popular' ) ), 50 'parent' => ' network-plugins-add-new',50 'parent' => 'add-a-new-plugin-network-plugins', 51 51 'meta' => array( 52 52 'class' => 'network-plugins-add-popular', … … 60 60 'title' => esc_html__( 'Add New Recommended Plugin', 'plugins-admin-bar' ), 61 61 'href' => esc_url( network_admin_url( '/plugin-install.php?tab=recommended' ) ), 62 'parent' => ' network-plugins-add-new',62 'parent' => 'add-a-new-plugin-network-plugins', 63 63 'meta' => array( 64 64 'class' => 'network-plugins-add-recommended', … … 72 72 'title' => esc_html__( 'Add New Favorites Plugin', 'plugins-admin-bar' ), 73 73 'href' => esc_url( network_admin_url( '/plugin-install.php?tab=favorites' ) ), 74 'parent' => ' network-plugins-add-new',74 'parent' => 'add-a-new-plugin-network-plugins', 75 75 'meta' => array( 76 76 'class' => 'network-plugins-add-favorites', … … 200 200 //is_single_site && user can manage_options 201 201 else if ( ! is_multisite() && current_user_can('manage_options') ) { 202 //Adds New PLugin link to new-content tab 203 $args = array( 204 'id' => 'add-a-new-plugin-single-plugins', 205 'title' => esc_html__( 'Plugin', 'plugins-admin-bar' ), 206 'href' => esc_url( network_admin_url( '/plugin-install.php' ) ), 207 'parent' => 'new-content', 208 'meta' => array( 209 'class' => 'add-a-new-plugin-single-plugins', 210 'title' => esc_html__( 'Add A New Plugin', 'plugins-admin-bar' ), 211 ) 212 ); 213 $wp_admin_bar->add_node($args); 202 214 $args = array( 203 215 'id' => 'single-plugins', … … 212 224 $wp_admin_bar->add_node($args); 213 225 214 //Add New Plugin Child Link to installed-plugins parent link215 $args = array(216 'id' => 'plugins-add-new',217 'title' => esc_html__( 'Add New Plugin', 'plugins-admin-bar' ),218 'href' => esc_url( admin_url( '/plugin-install.php' ) ),219 'parent' => 'single-plugins',220 'meta' => array(221 'class' => 'single-plugins-add-new',222 'title' => esc_html__( 'Add a new plugin', 'plugins-admin-bar' ),223 )224 );225 $wp_admin_bar->add_node($args);226 227 226 //Add Active Plugin Child Link to installed-plugins parent link 228 227 $args = array( … … 250 249 ); 251 250 $wp_admin_bar->add_node($args); 251 //if recently active plugins 252 if (get_site_option( 'recently_activated', array() ) ){ 253 //Add Recently Active Plugins Child Link to network-plugins parent link 254 $args = array( 255 'id' => 'single-plugins-recently-active', 256 'title' => esc_html__( 'Recenlty Active Plugins','plugins-admin-bar' ), 257 'href' => esc_url( admin_url( '/plugins.php?plugin_status=recently_activated' ) ), 258 'parent' => 'single-plugins', 259 'meta' => array( 260 'class' => 'single-plugins-recently-active', 261 'title' => esc_html__( 'View Recently Active Plugins','plugins-admin-bar' ), 262 ) 263 ); 264 $wp_admin_bar->add_node($args); 265 //if recently active plugins 266 } 252 267 253 268 // Add popular link to the installed-plugins link … … 256 271 'title' => esc_html__( 'Add Popuplar Plugins', 'plugins-admin-bar' ), 257 272 'href' => esc_url( admin_url( '/plugin-install.php?tab=popular' ) ), 258 'parent' => ' plugins-add-new',273 'parent' => 'add-a-new-plugin-single-plugins', 259 274 'meta' => array( 260 275 'class' => 'single-plugins-popular', … … 269 284 'title' => esc_html__( 'Add Recommended Plugins', 'plugins-admin-bar' ), 270 285 'href' => esc_url( admin_url('/plugin-install.php?tab=recommended') ), 271 'parent' => ' plugins-add-new',286 'parent' => 'add-a-new-plugin-single-plugins', 272 287 'meta' => array( 273 288 'class' => 'single-plugins-recommended', … … 282 297 'title' => esc_html__( 'Add Favorites Plugins', 'plugins-admin-bar' ), 283 298 'href' => esc_url( admin_url( '/plugin-install.php?tab=favorites' ) ), 284 'parent' => ' plugins-add-new',299 'parent' => 'add-a-new-plugin-single-plugins', 285 300 'meta' => array( 286 301 'class' => 'single-plugins-favorites', -
plugins-admin-bar/trunk/readme.txt
r1640937 r1672907 5 5 Requires at least: 4.1 6 6 Tested up to: 4.7.3 7 Stable tag: 1. 37 Stable tag: 1.4 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 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 = How It Works on a Single Install = 20 20 21 Plugin Admin Bar adds a new menu item to the quick links sub-menu, called Plugins, for a single site install. 21 Install the plugin and click activate. In the WP Admin Bar, at the top of your WordPress Site, hover your mouse on the +New Menu Item. 22 Inside is a list of the new things you can add to your site. You'll notice a menu item called "PLugins". Click to add a new plugin, or you can hover over the Plugins menu item and add a new plugin from the Popular, Recommended, and Favorites list. 22 23 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.24 In the WP Admin Bar, find the menu item with the Site Title. It has a house icon to the left. Hover over the Site Title menu item and you'll now see "Plugins" included in this list as well. From here, you'll be able to see Active and Inactive plugins. 24 25 25 = What shows up when the plugin is installed on a multisite install of WordPress and I am a Super Admin? = 26 If you have recently deactivated a plugin, a third menu item will appear as "Recently Active Plugins". After the allowed time has passed (7 days), this menu item will be removed until another plugin is recently deactivated. The menu item will also be removed if you Reactivate the recently deactivated plugin. 26 27 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 = How It Works on a Multisite Install = 28 29 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 If you're a super admin (you can manage the entire site): 30 31 31 = What shows up when the plugin is installed on a multisite install of WordPress and I am an Admin? = 32 Install the plugin and click activate. In the WP Admin Bar, at the top of your WordPress Site, hover your mouse on the +New Menu Item. 33 Inside is a list of the new things you can add to your site. You'll notice a menu item called "PLugins". Click to add a new plugin to the network, or you can hover over the Plugins menu item and add a new Popular, Recommended, and Favorites plugin to the network. 32 34 33 If you are a single site admin, on multisite, you'll only see all plugins, active & inactive plugins in the dropdown menu item. 35 You'll see two new menu items under the Site Title menu item in the WP Admin Bar. 36 "Network Plugins" & "Plugins" now appear under the Site Title. Under the "Network Plugins" menu item, you can see all of the Network Active, Inactive and Must use plugins. Under the "Plugins" menu item, you can see the Active and Inactive for each sub-site on the network. 34 37 35 See screenshots for more information. 38 If you are an admin of a sub-site (you can only activate/deactive plugins): 39 You will only see the "Plugins" menu item under the Site Title. You'll only be able to see the Active and Inactive plugins on your sub-site. Remember, only a super admin can add a plugin. 36 40 37 With Plugins Admin Bar, you'll never have to click 4 or 5 times just to installa new plugin, ever again.41 With Plugins Admin Bar, you'll never have to click 4 or 5 times just to view or install or a new plugin, ever again. 38 42 39 43 == Frequently Asked Questions == … … 46 50 47 51 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. 52 53 = Why doesn't the Recently Activated Plugins menu item appear on Multisite? = 54 55 It soon will. We have not found a clean way of displaying this menu item on the network side, and on the subsite level. Hang tight. 48 56 49 57 == Installation == … … 75 83 == Screenshots == 76 84 77 1. A single site can view active and inactive plugins, add a new plugin or add popular, recommended and favorite plugins. 78 2. A multisite network can view network active, inactive and must use plugins. Can add new, popular, recommended and favorite plugins. Can view active single site active and inactive plugins. 85 1. A single site can view active and inactive plugins, add a new plugin or add popular, recommended and favorite plugins. Please be advised, this photo is from version 1.3. 86 2. A multisite network can view network active, inactive and must use plugins. Can add new, popular, recommended and favorite plugins. Can view active single site active and inactive plugins. Please be advised, this photo is from version 1.3. 79 87 80 88 == Changelog == 89 90 = 1.4 = 91 * Added: Plugin quicklink to the +New drop down in WP Admin Bar. 92 * Added: Single Site Install will now display "Recently Active" menu item if a plugin has been recently deacitvated in the allowed time frame (7 days), once the notice fires off. When plugin is Reactivated, menu item hides again. 93 * Fixed: Moved Add New Popular, Recommended, and Favorites plugins to the Drop down link in +New quicklink. 94 * Fixed: Menu items are only two levels deep, not three. 81 95 82 96 = 1.3 =
Note: See TracChangeset
for help on using the changeset viewer.