Commit Graph

280 Commits

Author SHA1 Message Date
ryan
3462aab64e Fix name of plugins submenu. Props ocean90. fixes #17530
git-svn-id: http://svn.automattic.com/wordpress/trunk@18035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-25 16:06:42 +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
azaozz
d2e54b7932 Revert [17943] as it breaks plugins, props johnjamesjacoby, fixes #17484
git-svn-id: http://svn.automattic.com/wordpress/trunk@17950 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-18 06:20:30 +00:00
azaozz
46c545cdba Remove links from the menu separators, see #17324
git-svn-id: http://svn.automattic.com/wordpress/trunk@17943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-17 06:19:00 +00:00
westi
e8ecf0f599 Use the correct cap for the export menu item. Fixes #17452
git-svn-id: http://svn.automattic.com/wordpress/trunk@17937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-16 10:44:42 +00:00
markjaquith
301be4eeef Rename submenus to not clash with top level menus. Introduce all_items CPT string, defaulting to menu_name. fixes #17378
git-svn-id: http://svn.automattic.com/wordpress/trunk@17864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-11 20:09:28 +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
dd32
6000019f89 Hide update bubble counts for users who can't perform the update. Props garyc40 for initial patch. Fixes #14447
git-svn-id: http://svn.automattic.com/wordpress/trunk@17588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-03 08:59:01 +00:00
ryan
ba47c80ef7 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: http://svn.automattic.com/wordpress/trunk@17431 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-02-09 17:30:26 +00:00
nacin
3a59f70f18 Multisite super admins should still be able to see the Plugins menu in the site admin. fixes #16184.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17267 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-01-12 07:12:59 +00:00
nacin
b8c4418d50 Only rely on is_super_admin for is_multisite when generating menu code. fixes #16184.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17259 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-01-11 21:00:23 +00:00
nacin
41423e2dee Use correct variable. props SergeyBiryukov, TobiasBg, fixes #16063.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-01-04 19:09:20 +00:00
nacin
b61a5b0526 Update indicator for the Network Admin link. fixes #16063.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-01-04 08:36:06 +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
PeteMall
cab472f456 Remove plugin-install from site admin for is_multisite(). See #14435
git-svn-id: http://svn.automattic.com/wordpress/trunk@16815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-08 20:11:52 +00:00
nacin
4dd3b77b48 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: http://svn.automattic.com/wordpress/trunk@16747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-06 15:41:19 +00:00
markjaquith
775c840d95 Use get_taxonomies() when iterating taxonomies for menus. props wojtek.szkutnik. fixes #13936
git-svn-id: http://svn.automattic.com/wordpress/trunk@16695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-02 21:32:19 +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
scribu
4d75041199 Don't display Updates submenu in site admin. See #14435
git-svn-id: http://svn.automattic.com/wordpress/trunk@16374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-14 18:49:18 +00:00
ryan
59f55bea72 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: http://svn.automattic.com/wordpress/trunk@16294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-11 14:29:15 +00:00
ryan
c1d8299f92 Route submenus added to old super admin menu to tools menu for now. see #14435
git-svn-id: http://svn.automattic.com/wordpress/trunk@16261 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-09 19:23:42 +00:00
nacin
dc07485821 Set $tax as the taxonomy object, and kill off our colliding global from menu construction. see #15326.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16253 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-09 03:28:09 +00:00
nacin
91d3b6bea9 Introduce menu_name label for taxonomies and post types. Defaults to name. fixes #14832.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-09 02:09:00 +00:00
nacin
a86e48c322 Don't show plugin update counts on the non network admin menu. props PeteMall, see #14435.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-28 08:38:02 +00:00
nacin
ea039810f6 Encode the amp in the edit-tags menu link for pages. props blepoxp, see #14489 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-21 12:42:48 +00:00
nacin
c840f4676e 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: http://svn.automattic.com/wordpress/trunk@15844 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-19 07:58:02 +00:00
ryan
7119110439 Unset global variables when they are no longer needed.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15747 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-07 20:12:49 +00:00
ryan
9c31fd7c70 First pass of user admin. Network admin and screen cleanups. see #14696
git-svn-id: http://svn.automattic.com/wordpress/trunk@15746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-07 19:34:18 +00:00
ryan
dadb673d2f Fix page taxonomy query string. Props t31os_. fixes #14591
git-svn-id: http://svn.automattic.com/wordpress/trunk@15556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-08-31 18:36:04 +00:00
scribu
020ce73746 Ajaxify list-type screens in the admin. See #14579
git-svn-id: http://svn.automattic.com/wordpress/trunk@15491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-08-11 21:54:51 +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
nacin
a8af962f88 Fix admin memu link for tax assigned to pages. props SeyelentEco, fixes #13560 for trunk.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-07-14 04:53:45 +00:00
nacin
93a08d4d6f Increment first, to avoid ++ later on when it conflicts with [25].
git-svn-id: http://svn.automattic.com/wordpress/trunk@15338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-27 04:21:33 +00:00
nacin
e13e6254dc 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: http://svn.automattic.com/wordpress/trunk@15193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-10 17:57:30 +00:00
ryan
3dae667671 Show taxonomies registered against the page type in the Pages submenus. Props markauk. fixes #13560
git-svn-id: http://svn.automattic.com/wordpress/trunk@14953 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-26 19:03:46 +00:00
nacin
0080974df2 Use object names instead of 'Edit' in submenus. props jane, fixes #11274.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-24 21:09:55 +00:00
nacin
f15cdc78cf 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: http://svn.automattic.com/wordpress/trunk@14831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-24 09:23:56 +00:00
ryan
f0076eed1c 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: http://svn.automattic.com/wordpress/trunk@14713 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-17 16:39:36 +00:00
nacin
9af8453160 Make sure custom post types have unique IDs in the admin menu. props validBen, fixes #12445.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-15 05:38:40 +00:00
nbachiyski
4cf46b6d96 I18n for custom taxonomies. Fixes #13357
git-svn-id: http://svn.automattic.com/wordpress/trunk@14614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-14 00:34:04 +00:00
nacin
af91e5264a 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: http://svn.automattic.com/wordpress/trunk@14593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-13 04:10:17 +00:00
nacin
7734a07cb2 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: http://svn.automattic.com/wordpress/trunk@14585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-12 20:45:18 +00:00
nacin
7389ea41ea Use the edit_theme_options capability. fixes #13290.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14581 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-12 19:19:57 +00:00
nbachiyski
46afe7c285 I18n for custom post type labels. Props demetris, dimadin. Fixes #12968
git-svn-id: http://svn.automattic.com/wordpress/trunk@14571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-11 19:52:50 +00:00
ryan
acd118c1be Don't call get_plugins() in menu.php. It is too slow to call on every admin page load. fixes #13117
git-svn-id: http://svn.automattic.com/wordpress/trunk@14299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-29 16:38:12 +00:00
nacin
4cd8df217b Don't show plugin editor when there are no plugins. props solarissmoke, fixes #13117.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14290 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-29 05:34:24 +00:00
josephscott
e26aed0ac4 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: http://svn.automattic.com/wordpress/trunk@14189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-22 19:48:13 +00:00
dd32
abcbdf58b2 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: http://svn.automattic.com/wordpress/trunk@14127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-18 03:38:47 +00:00
nacin
ea4934a962 Allow create_users cap to be used independently of edit_users cap. fixes #12794.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14110 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-16 14:54:44 +00:00
nacin
f9f8d61872 Fix menu icons for custom post types. Fixes #12992, props wmrom.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14100 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-16 03:29:34 +00:00