Commit Graph

280 Commits

Author SHA1 Message Date
Ryan Boren
65379307dc Fix name of plugins submenu. Props ocean90. fixes #17530
git-svn-id: https://develop.svn.wordpress.org/trunk@18035 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-25 16:06:42 +00:00
Ryan Boren
09424ff8b3 Rename network admin submenus to not clash with top level menus. Props ocean90, markmcwilliams. see #17378
git-svn-id: https://develop.svn.wordpress.org/trunk@18026 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-24 21:58:01 +00:00
Andrew Ozz
8ae9b16300 Revert [17943] as it breaks plugins, props johnjamesjacoby, fixes #17484
git-svn-id: https://develop.svn.wordpress.org/trunk@17950 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-18 06:20:30 +00:00
Andrew Ozz
885fcbe7d1 Remove links from the menu separators, see #17324
git-svn-id: https://develop.svn.wordpress.org/trunk@17943 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-17 06:19:00 +00:00
Peter Westwood
b6f24be1c5 Use the correct cap for the export menu item. Fixes #17452
git-svn-id: https://develop.svn.wordpress.org/trunk@17937 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-16 10:44:42 +00:00
Mark Jaquith
1271508bb2 Rename submenus to not clash with top level menus. Introduce all_items CPT string, defaulting to menu_name. fixes #17378
git-svn-id: https://develop.svn.wordpress.org/trunk@17864 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-11 20:09:28 +00:00
Ryan Boren
f1213ecd03 Don't fetch update info our show update bubbles if the user does not have install caps. Props nacin. fixes #16532
git-svn-id: https://develop.svn.wordpress.org/trunk@17822 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-06 19:48:13 +00:00
Dion Hulse
a41a62b0c3 Hide update bubble counts for users who can't perform the update. Props garyc40 for initial patch. Fixes #14447
git-svn-id: https://develop.svn.wordpress.org/trunk@17588 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-03 08:59:01 +00:00
Ryan Boren
7c37c82691 Add additional promote_users checks. Show Add existing button only for multisite. Don't show bulk actions if user can't promote users. Show add new user menu if user has create_users but not promote_users. Props nacin. fixes #16501 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17431 602fd350-edb4-49c9-b593-d223f7449a82
2011-02-09 17:30:26 +00:00
Andrew Nacin
334356506b Multisite super admins should still be able to see the Plugins menu in the site admin. fixes #16184.
git-svn-id: https://develop.svn.wordpress.org/trunk@17267 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-12 07:12:59 +00:00
Andrew Nacin
173b89b166 Only rely on is_super_admin for is_multisite when generating menu code. fixes #16184.
git-svn-id: https://develop.svn.wordpress.org/trunk@17259 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-11 21:00:23 +00:00
Andrew Nacin
0e3b5ba03d Use correct variable. props SergeyBiryukov, TobiasBg, fixes #16063.
git-svn-id: https://develop.svn.wordpress.org/trunk@17219 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-04 19:09:20 +00:00
Andrew Nacin
34412cc70d Update indicator for the Network Admin link. fixes #16063.
git-svn-id: https://develop.svn.wordpress.org/trunk@17217 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-04 08:36:06 +00:00
Andrew Nacin
1dea0bc9f4 Use the update_core, update_plugins and update_themes caps in update-core.php. fixes #15866.
git-svn-id: https://develop.svn.wordpress.org/trunk@17048 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-18 18:43:35 +00:00
Pete Mall
cfe4cf192b Remove plugin-install from site admin for is_multisite(). See #14435
git-svn-id: https://develop.svn.wordpress.org/trunk@16815 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-08 20:11:52 +00:00
Andrew Nacin
8abcb8e5ce Link to network/update-core when running multisite. Remove theme/plugin editors from blog menu when running multisite. Redirect to network/* when accessing theme/plugin-install/editor. props ocean90, see #15525.
git-svn-id: https://develop.svn.wordpress.org/trunk@16747 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-06 15:41:19 +00:00
Mark Jaquith
4fab2aee5c Use get_taxonomies() when iterating taxonomies for menus. props wojtek.szkutnik. fixes #13936
git-svn-id: https://develop.svn.wordpress.org/trunk@16695 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-02 21:32:19 +00:00
Andrew Nacin
dc27759993 Move the network version of Tools > Network to the network admin. props wpdavis, fixes #15461.
git-svn-id: https://develop.svn.wordpress.org/trunk@16453 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 05:24:13 +00:00
scribu
8aaf2d5598 Don't display Updates submenu in site admin. See #14435
git-svn-id: https://develop.svn.wordpress.org/trunk@16374 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-14 18:49:18 +00:00
Ryan Boren
c8d7cc8664 user-new.php revamp. Separate caps for adding users vs. creating users. Allow supes to add via email or username. Split adding existing users and creating new users into separate forms. see #15357
git-svn-id: https://develop.svn.wordpress.org/trunk@16294 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-11 14:29:15 +00:00
Ryan Boren
f28e46af02 Route submenus added to old super admin menu to tools menu for now. see #14435
git-svn-id: https://develop.svn.wordpress.org/trunk@16261 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 19:23:42 +00:00
Andrew Nacin
4125fe393b Set $tax as the taxonomy object, and kill off our colliding global from menu construction. see #15326.
git-svn-id: https://develop.svn.wordpress.org/trunk@16253 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 03:28:09 +00:00
Andrew Nacin
c165557b3e Introduce menu_name label for taxonomies and post types. Defaults to name. fixes #14832.
git-svn-id: https://develop.svn.wordpress.org/trunk@16251 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-09 02:09:00 +00:00
Andrew Nacin
524c263196 Don't show plugin update counts on the non network admin menu. props PeteMall, see #14435.
git-svn-id: https://develop.svn.wordpress.org/trunk@16040 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 08:38:02 +00:00
Andrew Nacin
c4d5a5e4a6 Encode the amp in the edit-tags menu link for pages. props blepoxp, see #14489 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15881 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-21 12:42:48 +00:00
Andrew Nacin
22ba9295bf Introduce show_in_menu for register_post_type. Allows post types to be a submenu. Accepts boolean and also a parent base. With help from duck_. fixes #14145.
git-svn-id: https://develop.svn.wordpress.org/trunk@15844 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:58:02 +00:00
Ryan Boren
1b7b0e1d7f Unset global variables when they are no longer needed.
git-svn-id: https://develop.svn.wordpress.org/trunk@15747 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 20:12:49 +00:00
Ryan Boren
9ee8b20f30 First pass of user admin. Network admin and screen cleanups. see #14696
git-svn-id: https://develop.svn.wordpress.org/trunk@15746 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-07 19:34:18 +00:00
Ryan Boren
6f7289bfa5 Fix page taxonomy query string. Props t31os_. fixes #14591
git-svn-id: https://develop.svn.wordpress.org/trunk@15556 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-31 18:36:04 +00:00
scribu
fb9394167f Ajaxify list-type screens in the admin. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@15491 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-11 21:54:51 +00:00
Ryan Boren
edd48280e3 Network Admin, first pass. see #14435
git-svn-id: https://develop.svn.wordpress.org/trunk@15481 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-30 20:34:54 +00:00
Andrew Nacin
26e4490a6b Fix admin memu link for tax assigned to pages. props SeyelentEco, fixes #13560 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15424 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-14 04:53:45 +00:00
Andrew Nacin
462d22c3e2 Increment first, to avoid ++ later on when it conflicts with [25].
git-svn-id: https://develop.svn.wordpress.org/trunk@15338 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-27 04:21:33 +00:00
Andrew Nacin
a53e7e3018 Switch to current_theme_supports(menus) internally. Adding theme support for 'nav-menus' is deprecated in favor of register_nav_menu(s). fixes #13825.
git-svn-id: https://develop.svn.wordpress.org/trunk@15193 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 17:57:30 +00:00
Ryan Boren
96aac845a9 Show taxonomies registered against the page type in the Pages submenus. Props markauk. fixes #13560
git-svn-id: https://develop.svn.wordpress.org/trunk@14953 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 19:03:46 +00:00
Andrew Nacin
22cbdf0c6a Use object names instead of 'Edit' in submenus. props jane, fixes #11274.
git-svn-id: https://develop.svn.wordpress.org/trunk@14856 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 21:09:55 +00:00
Andrew Nacin
0aa0cde880 Menu tweaks. Save menu locations when saving the menu. Also, centralize theme support checks and add them to menu.php. Improve some branching. Remove some old JS vars, add a missing semicolon, etc. props koopersmith. see #13378.
git-svn-id: https://develop.svn.wordpress.org/trunk@14831 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 09:23:56 +00:00
Ryan Boren
e88dc2d87d Set show_ui to true for post and page. Exclude _builtin = true from areas where we need to special case builtin types. fixes #13403
git-svn-id: https://develop.svn.wordpress.org/trunk@14713 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-17 16:39:36 +00:00
Andrew Nacin
932214755c Make sure custom post types have unique IDs in the admin menu. props validBen, fixes #12445.
git-svn-id: https://develop.svn.wordpress.org/trunk@14654 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 05:38:40 +00:00
Nikolay Bachiyski
599c19481e I18n for custom taxonomies. Fixes #13357
git-svn-id: https://develop.svn.wordpress.org/trunk@14614 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 00:34:04 +00:00
Andrew Nacin
4f689c8309 Move taxonomy object properties for capabilities into a cap object. Capabilities can be specified via ['capabilities'] (an array keyed by the generic cap name) for register_taxonomy. fixes #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14593 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 04:10:17 +00:00
Andrew Nacin
323342deec Move post type object capabilities to a 'cap' object. Allow them to be initialized via the 'capabilities' key (an array) when registering support for the post type. Caps are now referred to by the name of the cap as if it was a post, i.e. ->cap->edit_post. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14585 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 20:45:18 +00:00
Andrew Nacin
49e4cad78c Use the edit_theme_options capability. fixes #13290.
git-svn-id: https://develop.svn.wordpress.org/trunk@14581 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-12 19:19:57 +00:00
Nikolay Bachiyski
ad3881470e I18n for custom post type labels. Props demetris, dimadin. Fixes #12968
git-svn-id: https://develop.svn.wordpress.org/trunk@14571 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 19:52:50 +00:00
Ryan Boren
616f48e89d Don't call get_plugins() in menu.php. It is too slow to call on every admin page load. fixes #13117
git-svn-id: https://develop.svn.wordpress.org/trunk@14299 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 16:38:12 +00:00
Andrew Nacin
23cd92c6ff Don't show plugin editor when there are no plugins. props solarissmoke, fixes #13117.
git-svn-id: https://develop.svn.wordpress.org/trunk@14290 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-29 05:34:24 +00:00
Joseph Scott
cae7b3b275 New 'list_users' cap to provide more controls over listing users vs. editing
users.

Apply this new cap to the 'Authors & Users' menu item and 'Users' page in
wp-admin.

Bump db version to 14139 to pick up the new cap.

See #13074



git-svn-id: https://develop.svn.wordpress.org/trunk@14189 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-22 19:48:13 +00:00
Dion Hulse
70af67f01c Escape/texturize Admin menu titles. Fixes page titles such as "Foo & Bar" not being entity encoded. Also includes some basic whitespace/standards cleanup to a related function. Fixes #12039
git-svn-id: https://develop.svn.wordpress.org/trunk@14127 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 03:38:47 +00:00
Andrew Nacin
6be056c689 Allow create_users cap to be used independently of edit_users cap. fixes #12794.
git-svn-id: https://develop.svn.wordpress.org/trunk@14110 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 14:54:44 +00:00
Andrew Nacin
3cc1ff4546 Fix menu icons for custom post types. Fixes #12992, props wmrom.
git-svn-id: https://develop.svn.wordpress.org/trunk@14100 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-16 03:29:34 +00:00