Commit Graph

234 Commits

Author SHA1 Message Date
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
Andrew Nacin
a6c8b2c780 Bump tools.php from read cap to edit_posts. Old cap was for Gears. fixes #12903, see #11301.
git-svn-id: https://develop.svn.wordpress.org/trunk@14097 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-15 22:16:22 +00:00
Dion Hulse
eda97585bb Prevent $post_type_object->menu_position from conflicting with another plugin, or core menu item. Props blepoxp. Fixes #12951
git-svn-id: https://develop.svn.wordpress.org/trunk@14049 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-10 10:48:30 +00:00
Mark Jaquith
697e807eb0 Add menu_position and menu_icon params to register_post_type(). props ptahdunbar. fixes #12541
git-svn-id: https://develop.svn.wordpress.org/trunk@14014 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-06 04:32:08 +00:00
Dion Hulse
c161ae3d7d Use $ptype_obj->edit_type_cap instead of 'edit_posts' for custom post_type menu's & edit.php access. Allows for a user to have the capability to edit a post_type irrespective of their Posts access. Props rovo89. Fixes #12691
git-svn-id: https://develop.svn.wordpress.org/trunk@13841 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-27 06:40:59 +00:00
Dion Hulse
cf430f20d0 Do not display empty Appearance menu for subscribers. Need to use Menu API after the _admin_menu hook has fired.
git-svn-id: https://develop.svn.wordpress.org/trunk@13783 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-21 01:01:45 +00:00
Dion Hulse
17d50834af Remove Options -> Misc entirely as core as there are no longer options left there. Plugin registered options will be redirected to the General settings page. Fixes #12437
git-svn-id: https://develop.svn.wordpress.org/trunk@13745 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-18 07:50:43 +00:00
Ryan Boren
e61755c853 Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@13733 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-17 16:27:25 +00:00
Andrew Nacin
0e567e38f1 Don't allow access to network.php if running an MU network. It is only for networks created in 3.0. see #11816. Also, fix MS htaccess logic, see #12136
git-svn-id: https://develop.svn.wordpress.org/trunk@13679 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 23:53:03 +00:00
Ryan Boren
a4ac7f25ee Allow custom post types to have custom icons. Props ptahdunbar, Denis-de-Bernardy. fixes #12434
git-svn-id: https://develop.svn.wordpress.org/trunk@13660 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-11 17:05:16 +00:00
Ron Rennick
c466a4bf82 Delete blog to Delete site, props markmcwilliams, see #12572, code cleanup, see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13645 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-10 16:06:53 +00:00
Andrew Nacin
93f0c5ee6a Expose a read-only network.php once multisite is enabled, to ensure access to original configuration such as rewrite rules. see #11816
git-svn-id: https://develop.svn.wordpress.org/trunk@13638 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-09 22:42:36 +00:00
Andrew Nacin
e71a0b3db3 Rename WP_ENABLE_MULTISITE to WP_ALLOW_MULTISITE to minimize confusion. Prevent direct access to network.php without the constant unless the install process was already started. see #11816 for network.php. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13634 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-09 19:10:07 +00:00
Dion Hulse
97d62bb8ce GUU: Add Update breakdown to Title attribute of update bubble. See #12517
git-svn-id: https://develop.svn.wordpress.org/trunk@13607 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-06 13:22:56 +00:00
Dion Hulse
d54c6651b9 Do not count Development versions of WordPress as having a core-update available. See #12517
git-svn-id: https://develop.svn.wordpress.org/trunk@13603 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-06 08:42:04 +00:00
Dion Hulse
9ef767fe07 Add an update count bubble to the Updates menu. See #12517
git-svn-id: https://develop.svn.wordpress.org/trunk@13593 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-05 12:45:24 +00:00
Dion Hulse
2343b09500 Show the dashboard instead of Update Core page for the dashboard.. Adds a dummy menu in the case of multisite or superadmin. see #12517
git-svn-id: https://develop.svn.wordpress.org/trunk@13591 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-05 06:20:41 +00:00
Ron Rennick
7f8ea354ac UI upgrade -> update, see #12517
git-svn-id: https://develop.svn.wordpress.org/trunk@13590 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-04 23:28:15 +00:00
Ryan Boren
59c1431b30 Display dash submenus correctly for all combinations of multisite and super admin.
git-svn-id: https://develop.svn.wordpress.org/trunk@13589 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-04 23:11:51 +00:00
Dion Hulse
d02dceca4d Move Tools -> Upgrade to Dashboard -> Updates. As per dev meetup today. See #12517
git-svn-id: https://develop.svn.wordpress.org/trunk@13588 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-04 21:24:43 +00:00
Ryan Boren
bbf41d8ba0 Show the network enable menu only if config flag is set. Per wordpress-dev meetup. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13587 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-04 21:20:55 +00:00
Ryan Boren
d9ba4cb076 Rename Network menu to Super Admin. Avoids the Network/Site confusion and makes it clear that these menus require and exercise super admin capabilities. Opportunity for a caped icon. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@13585 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-04 18:53:32 +00:00
Dion Hulse
ce4937c008 Remove the now defunct Add New Themes menu item accidentally re-added in [13582]. See #12442
git-svn-id: https://develop.svn.wordpress.org/trunk@13583 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-04 12:25:38 +00:00
Dion Hulse
1790ccb38f Move 'Add New Themes' and 'Editor' to the bottom of the Appearance menu item. See #12442
git-svn-id: https://develop.svn.wordpress.org/trunk@13582 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-04 12:23:21 +00:00
Ryan Boren
8aea5863d7 Fix submenus for post types. Props TobiasBg. see #12453
git-svn-id: https://develop.svn.wordpress.org/trunk@13579 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-04 00:15:55 +00:00
Ryan Boren
1e8b1d12c9 Tab interface for Theme and Add New Theme. First pass. Props matveb, dremeda. see #12412
git-svn-id: https://develop.svn.wordpress.org/trunk@13533 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-01 15:27:42 +00:00
Ryan Boren
d357c80caf Reorg nav menu files. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13366 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-24 08:06:36 +00:00
Ryan Boren
33bd0dd935 Drop 'Custom' from menu names. Use 'Menus' instead of Navigation. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13339 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-23 20:28:52 +00:00
Ron Rennick
c7e12e9265 multisite UX, see #11644, add manage_ caps for super_admin, fixes #11803
git-svn-id: https://develop.svn.wordpress.org/trunk@13301 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-22 18:41:38 +00:00
Ron Rennick
f97af13505 introduce custom menus, props jeffikus, See #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13257 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 21:57:43 +00:00
Dion Hulse
897529ea59 More Taxonomy cap checks. See #12035
git-svn-id: https://develop.svn.wordpress.org/trunk@13217 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-19 10:26:44 +00:00
Dion Hulse
7cdc6568d0 First pass at giving taxonomies a show_ui param. See #10773
git-svn-id: https://develop.svn.wordpress.org/trunk@13216 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-19 10:21:29 +00:00
Dion Hulse
68039969c1 Banish User_level 10 use from Network Menu.
git-svn-id: https://develop.svn.wordpress.org/trunk@13094 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 07:00:09 +00:00
Ron Rennick
f2ade7aa6d Add rounded top corners to dashboard menu when there is no network menu, fixes #12151
git-svn-id: https://develop.svn.wordpress.org/trunk@13003 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-07 04:13:22 +00:00
Ryan Boren
8be3a24819 Add a separate show_ui flag for post types. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12993 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-06 17:27:30 +00:00
Dion Hulse
d9281a3e46 Enable Plugin/Theme editor menu item for Super Admins. See #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12984 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-06 06:49:11 +00:00
Ryan Boren
e96e6f0d8c Update real parent file back compat for pages menus. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12960 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-04 22:09:35 +00:00
Ryan Boren
55223d6753 Move Network menu to the top. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12956 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-04 20:32:06 +00:00
Ron Rennick
454cf82301 minor fixes to populate_options(), UI tweaks, see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12920 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-01 20:01:14 +00:00
Dion Hulse
4dd3d0c6be Revert [12908]. Update Users cap to use a capability. See #12098. Props nacin
git-svn-id: https://develop.svn.wordpress.org/trunk@12916 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-01 08:12:56 +00:00
Dion Hulse
eca137d68f Hide Users -> Add New on MultiSite unless admin has enabled access to the page. See #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12908 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-31 11:39:34 +00:00
Ryan Boren
f6878865b5 Move 'My Blogs' into its own file. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12904 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-29 23:21:01 +00:00
Ryan Boren
08da5196a3 unset temp vars in menu.php so they don't pollute the global namespace.
git-svn-id: https://develop.svn.wordpress.org/trunk@12845 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-26 18:09:45 +00:00
Ryan Boren
e98eb23a38 Unset menu_perms once we're done with it. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12844 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-26 17:55:51 +00:00
Ryan Boren
8dd260e7cf Fix warning. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12843 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-26 17:54:45 +00:00
Ron Rennick
795bbaaf79 Move network screen to the tools menu, See #12027
git-svn-id: https://develop.svn.wordpress.org/trunk@12830 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-25 23:07:49 +00:00
Ryan Boren
5a13380cf4 Move blog deletion to ms-delete-site.php. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12828 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-25 22:46:41 +00:00