Commit Graph

238 Commits

Author SHA1 Message Date
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
nacin c6569e6a53 Bump tools.php from read cap to edit_posts. Old cap was for Gears. fixes #12903, see #11301.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14097 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-15 22:16:22 +00:00
dd32 3ad70c3e8c Prevent $post_type_object->menu_position from conflicting with another plugin, or core menu item. Props blepoxp. Fixes #12951
git-svn-id: http://svn.automattic.com/wordpress/trunk@14049 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-10 10:48:30 +00:00
markjaquith f1fd3f2780 Add menu_position and menu_icon params to register_post_type(). props ptahdunbar. fixes #12541
git-svn-id: http://svn.automattic.com/wordpress/trunk@14014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-06 04:32:08 +00:00
dd32 284a6cbc63 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: http://svn.automattic.com/wordpress/trunk@13841 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-27 06:40:59 +00:00
dd32 bc60e6967a Do not display empty Appearance menu for subscribers. Need to use Menu API after the _admin_menu hook has fired.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13783 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-21 01:01:45 +00:00
dd32 5a5064ae61 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: http://svn.automattic.com/wordpress/trunk@13745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-18 07:50:43 +00:00
ryan e25a65b36a Trim trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@13733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-17 16:27:25 +00:00
nacin 1cb0f9042b 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: http://svn.automattic.com/wordpress/trunk@13679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-11 23:53:03 +00:00
ryan c8756014d2 Allow custom post types to have custom icons. Props ptahdunbar, Denis-de-Bernardy. fixes #12434
git-svn-id: http://svn.automattic.com/wordpress/trunk@13660 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-11 17:05:16 +00:00
wpmuguru 0cbe9fd4c1 Delete blog to Delete site, props markmcwilliams, see #12572, code cleanup, see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@13645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-10 16:06:53 +00:00
nacin 1586596d2f 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: http://svn.automattic.com/wordpress/trunk@13638 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-09 22:42:36 +00:00
nacin c42b0e50ea 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: http://svn.automattic.com/wordpress/trunk@13634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-09 19:10:07 +00:00
dd32 28b2f32688 GUU: Add Update breakdown to Title attribute of update bubble. See #12517
git-svn-id: http://svn.automattic.com/wordpress/trunk@13607 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-06 13:22:56 +00:00
dd32 f6fee10d90 Do not count Development versions of WordPress as having a core-update available. See #12517
git-svn-id: http://svn.automattic.com/wordpress/trunk@13603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-06 08:42:04 +00:00
dd32 a7fcc6f4de Add an update count bubble to the Updates menu. See #12517
git-svn-id: http://svn.automattic.com/wordpress/trunk@13593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-05 12:45:24 +00:00
dd32 ffa4103e99 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: http://svn.automattic.com/wordpress/trunk@13591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-05 06:20:41 +00:00
wpmuguru dec2715ca4 UI upgrade -> update, see #12517
git-svn-id: http://svn.automattic.com/wordpress/trunk@13590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-04 23:28:15 +00:00
ryan 274a3f69fb Display dash submenus correctly for all combinations of multisite and super admin.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-04 23:11:51 +00:00
dd32 13d204b3f9 Move Tools -> Upgrade to Dashboard -> Updates. As per dev meetup today. See #12517
git-svn-id: http://svn.automattic.com/wordpress/trunk@13588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-04 21:24:43 +00:00
ryan 6075fb30d2 Show the network enable menu only if config flag is set. Per wordpress-dev meetup. see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@13587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-04 21:20:55 +00:00
ryan cbc1ea27e8 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: http://svn.automattic.com/wordpress/trunk@13585 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-04 18:53:32 +00:00
dd32 68741b4de7 Remove the now defunct Add New Themes menu item accidentally re-added in [13582]. See #12442
git-svn-id: http://svn.automattic.com/wordpress/trunk@13583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-04 12:25:38 +00:00
dd32 e193aec3b7 Move 'Add New Themes' and 'Editor' to the bottom of the Appearance menu item. See #12442
git-svn-id: http://svn.automattic.com/wordpress/trunk@13582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-04 12:23:21 +00:00
ryan aa47e83dee Fix submenus for post types. Props TobiasBg. see #12453
git-svn-id: http://svn.automattic.com/wordpress/trunk@13579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-04 00:15:55 +00:00
ryan 42a15216ff Tab interface for Theme and Add New Theme. First pass. Props matveb, dremeda. see #12412
git-svn-id: http://svn.automattic.com/wordpress/trunk@13533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-01 15:27:42 +00:00
ryan d5074db5ea Reorg nav menu files. see #11817
git-svn-id: http://svn.automattic.com/wordpress/trunk@13366 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-24 08:06:36 +00:00
ryan 111e334aca Drop 'Custom' from menu names. Use 'Menus' instead of Navigation. see #11817
git-svn-id: http://svn.automattic.com/wordpress/trunk@13339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-23 20:28:52 +00:00
wpmuguru a5a9f32b73 multisite UX, see #11644, add manage_ caps for super_admin, fixes #11803
git-svn-id: http://svn.automattic.com/wordpress/trunk@13301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-22 18:41:38 +00:00
wpmuguru 4d203a02c6 introduce custom menus, props jeffikus, See #11817
git-svn-id: http://svn.automattic.com/wordpress/trunk@13257 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-20 21:57:43 +00:00
dd32 35cdac687c More Taxonomy cap checks. See #12035
git-svn-id: http://svn.automattic.com/wordpress/trunk@13217 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-19 10:26:44 +00:00
dd32 39620db24d First pass at giving taxonomies a show_ui param. See #10773
git-svn-id: http://svn.automattic.com/wordpress/trunk@13216 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-19 10:21:29 +00:00
dd32 14c0a033a5 Banish User_level 10 use from Network Menu.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13094 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-13 07:00:09 +00:00
wpmuguru b21a238a87 Add rounded top corners to dashboard menu when there is no network menu, fixes #12151
git-svn-id: http://svn.automattic.com/wordpress/trunk@13003 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-07 04:13:22 +00:00
ryan 9de60f3644 Add a separate show_ui flag for post types. see #9674
git-svn-id: http://svn.automattic.com/wordpress/trunk@12993 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-06 17:27:30 +00:00
dd32 08e12373a5 Enable Plugin/Theme editor menu item for Super Admins. See #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12984 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-06 06:49:11 +00:00
ryan 7b81cdc30f Update real parent file back compat for pages menus. see #9674
git-svn-id: http://svn.automattic.com/wordpress/trunk@12960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-04 22:09:35 +00:00
ryan 7a77e674ac Move Network menu to the top. see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12956 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-04 20:32:06 +00:00
wpmuguru cfbffea85e minor fixes to populate_options(), UI tweaks, see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12920 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-01 20:01:14 +00:00
dd32 94af70dea8 Revert [12908]. Update Users cap to use a capability. See #12098. Props nacin
git-svn-id: http://svn.automattic.com/wordpress/trunk@12916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-01 08:12:56 +00:00
dd32 6b5cba1de8 Hide Users -> Add New on MultiSite unless admin has enabled access to the page. See #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12908 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-31 11:39:34 +00:00
ryan 0f2060ef5d Move 'My Blogs' into its own file. see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-29 23:21:01 +00:00
ryan 055f3db3a3 unset temp vars in menu.php so they don't pollute the global namespace.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12845 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-26 18:09:45 +00:00