Commit Graph

39 Commits

Author SHA1 Message Date
Felix Arntz 9354ea683f Multisite: Introduce an `upgrade_network` capability.
Prior to this change, a mix of `is_super_admin()` calls and `manage_network` capability checks was used to determine whether the current user could upgrade the network. With this changeset a dedicated capability is introduced that allows more granular handling.

Props dhanendran for the original patch.
Fixes #39205. See #37616.

Built from https://develop.svn.wordpress.org/trunk@40404


git-svn-id: http://core.svn.wordpress.org/trunk@40311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-10 21:11:43 +00:00
Felix Arntz 00e8704288 Multisite: Introduce a `setup_network` capability for setting up multisite.
`setup_network` is a new meta capability that brings more granular control over the permissions to setup a multisite environment. In a non-multisite environment it falls back to `manage_options` while in a multisite it falls back to `manage_network_options`. The introduction of this capability furthermore allows replacing an `is_super_admin()` check.

Props ashokkumar24 for the original patch.
Fixes #39206. See #37616.

Built from https://develop.svn.wordpress.org/trunk@40390


git-svn-id: http://core.svn.wordpress.org/trunk@40297 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-07 12:53:45 +00:00
Pascal Birchler e4d7dd2b8a Upgrade/Install: Refresh update counts after page load.
By enqueuing the updates script in the footer and passing the number of available updates to it after page load, the update bubbles will be more accurate.

Props ocean90, swissspidy.
Fixes #13071.
Built from https://develop.svn.wordpress.org/trunk@38827


git-svn-id: http://core.svn.wordpress.org/trunk@38770 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-19 10:27:29 +00:00
Jeremy Felt ced66ed4e7 Multisite: Use the admin-multisite Dashicon for sites
This icon was added to Dashicons in 4.3, but not applied to anything in our CSS.

Uses the more appropriate `dashicons-admin-multisite` when displaying the sites menu item.

Props Ipstenu, ocean90.
Fixes #36754.

Built from https://develop.svn.wordpress.org/trunk@37365


git-svn-id: http://core.svn.wordpress.org/trunk@37331 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-05-05 17:13:26 +00:00
Jeremy Felt 2a2e976501 Move network update submenu items to the Network Dashboard menu item
Provides parity with the placement of the "Updates" submenu item in single site.

props Ipstenu.
fixes #32431.

Built from https://develop.svn.wordpress.org/trunk@32514


git-svn-id: http://core.svn.wordpress.org/trunk@32484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2015-05-19 17:00:29 +00:00
Scott Taylor 71bca51151 Network Admin Menu:
* Don't display update count for Themes when the user doesn't have the 'update_themes' cap
* Don't display update count for Plugins when there aren't any/count is `0`

Props peterchester.
Fixes #29651.

Built from https://develop.svn.wordpress.org/trunk@29817


git-svn-id: http://core.svn.wordpress.org/trunk@29583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-10-02 15:49:17 +00:00
Dominik Schilling f66096e4b4 Add missing Dashicons classes to Network Admin menu, see #26630.
Built from https://develop.svn.wordpress.org/trunk@27444


git-svn-id: http://core.svn.wordpress.org/trunk@27291 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-06 22:52:15 +00:00
Dominik Schilling d23cd0aa50 Introduce a `.dashicons-before` CSS class.
If you want to use a Dashicon before an element you can use the class because it will not change the elements content styling. With that you don't need to copy the entire `.dashicons` styling to your :before styling anymore.
To demonstrate this change, Admin Menu now uses Dashicons classes directly.

And it fixes a glitch in IE.

fixes #26630.
Built from https://develop.svn.wordpress.org/trunk@27418


git-svn-id: http://core.svn.wordpress.org/trunk@27265 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-03-05 20:04:14 +00:00
Andrew Nacin 718cc193c9 Ensure the last separator is removed from the user and network admin menus.
props johnjamesjacoby.
fixes #25425.

Built from https://develop.svn.wordpress.org/trunk@27066


git-svn-id: http://core.svn.wordpress.org/trunk@26939 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2014-02-02 06:19:12 +00:00
Ryan Boren da7db424de Call them network upgrades rather than network updates to better indicate that they are DB upgrades rather than code/file upgrades.
Improve the contextual help for the Network Upgrade screen.

Props DrewAPicture
fixes #23540


git-svn-id: http://core.svn.wordpress.org/trunk@23619 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2013-03-05 17:02:31 +00:00
Andrew Nacin bd25a2e910 Correct a translation context in the network admin. props SergeyBiryukov. fixes #20910.
git-svn-id: http://core.svn.wordpress.org/trunk@21858 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-15 19:57:46 +00:00
ryan e3b46b25d3 Lose EOF ?>. Clean up EOF newlines. fixes #12307
git-svn-id: http://svn.automattic.com/wordpress/trunk@19712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-08 17:01:11 +00:00
ryan 616c35e71c One newline is enough.
git-svn-id: http://svn.automattic.com/wordpress/trunk@19684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-05 20:10:39 +00:00
ryan 340e93324c Remove extraneous spaces. Props kenan3008, dimadin. fixes #19501 #19433
git-svn-id: http://svn.automattic.com/wordpress/trunk@19596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-14 17:36:38 +00:00
ryan 33113c01c7 Make the dashboard screen (index.php) occupy the same menu index across all admins (site/network/user). Props wpmuguru. fixes #17751
git-svn-id: http://svn.automattic.com/wordpress/trunk@18839 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-09-30 16:47:02 +00:00
ryan c2d37a3d65 Consolidate update count code into wp_get_update_data(). Props mitchoyoshitaka. fixes #17694
git-svn-id: http://svn.automattic.com/wordpress/trunk@18468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-07-26 18:39:57 +00:00
nacin e811e73322 s/Themes Updates/Theme Updates/. props mitchoyoshitaka. fixes #17701.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-06-06 00:30:17 +00:00
ryan 51fe428865 Rename network admin submenus to not clash with top level menus. Props ocean90, markmcwilliams. see #17378
git-svn-id: http://svn.automattic.com/wordpress/trunk@18026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-24 21:58:01 +00:00
ryan c39f85038e Don't fetch update info our show update bubbles if the user does not have install caps. Props nacin. fixes #16532
git-svn-id: http://svn.automattic.com/wordpress/trunk@17822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-06 19:48:13 +00:00
nacin 453fd478a1 Use the update_core, update_plugins and update_themes caps in update-core.php. fixes #15866.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-18 18:43:35 +00:00
nacin 86daabffdf Add theme update bubble, hide redundant bubble on network admin. props PeteMall, see #15866.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-17 18:51:19 +00:00
nbachiyski 5e6da99d6b Add context to Add New buttons in Network admin. See #15577
git-svn-id: http://svn.automattic.com/wordpress/trunk@16611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-29 16:41:35 +00:00
nacin d6002995a7 Move the network version of Tools > Network to the network admin. props wpdavis, fixes #15461.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16453 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-18 05:24:13 +00:00
ryan 7518ed21f7 Use install_themes cap
git-svn-id: http://svn.automattic.com/wordpress/trunk@16327 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-12 15:32:40 +00:00
nacin f269b75d7b Network admin multisite checks and docs. see #14435.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-10 14:27:15 +00:00
ryan f903ceb524 Check create_users cap. see #14435
git-svn-id: http://svn.automattic.com/wordpress/trunk@16184 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-04 16:27:18 +00:00
ryan a9e5ade43f Add new user page for network admin. Props PeteMall. see #14435
git-svn-id: http://svn.automattic.com/wordpress/trunk@16183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-04 16:16:52 +00:00
nacin b7392b4efd Use a create_users cap for Sites > Add New. fixes #14621.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-30 14:31:13 +00:00
nacin 14ccdbec33 Pruning shears.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-21 19:55:28 +00:00
nacin 5d1730dfba Rename Update menu to Updates in network admin. see #14435
git-svn-id: http://svn.automattic.com/wordpress/trunk@15901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-21 17:52:44 +00:00
nacin 66a2572a2e Network admin theme install. props PeteMall, fixes #15184.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15898 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-21 17:06:52 +00:00
ryan 23bc3f7fe6 Move add site form to site-new.php. see #15174
git-svn-id: http://svn.automattic.com/wordpress/trunk@15886 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-21 13:49:49 +00:00
nacin de9ce9e2fe Doc blocks for wp-admin/network. see #14435.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-21 11:21:13 +00:00
ryan 14ae165bb5 Add update-core to network admin. Props PeteMall. see #15162
git-svn-id: http://svn.automattic.com/wordpress/trunk@15871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-20 16:38:00 +00:00
nacin c1cc548f5a Fix dashboard menu icon in network admin. props PeteMall, see #14435.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-20 14:52:10 +00:00
ryan 6b6c2583a4 Add plugin update notifications, plugin install, plugin update to the network admin screen. Props PeteMall. see #15129
git-svn-id: http://svn.automattic.com/wordpress/trunk@15867 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-20 14:16:03 +00:00
ryan 022cdc5e6c Plugin editing for network admin. Props PeteMall. see #14435
git-svn-id: http://svn.automattic.com/wordpress/trunk@15853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-19 18:23:23 +00:00
ryan 5cc70d72e9 require_once to avoid error from admin bar snack menu include
git-svn-id: http://svn.automattic.com/wordpress/trunk@15716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-04 19:25:39 +00:00
ryan 21e3f0f7fa Network Admin, first pass. see #14435
git-svn-id: http://svn.automattic.com/wordpress/trunk@15481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-07-30 20:34:54 +00:00