Commit Graph

6521 Commits

Author SHA1 Message Date
nacin 6a3d1484bf Nav menu inline doc fixes. props NathanRice, fixes #13370.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-13 03:46:35 +00:00
ryan 7231cc8a56 Don't pass a slug when creating anew menu. This prevents creating a menu whose slug matches a different term in another taxonomy. Props filosofo. fixes #13345
git-svn-id: http://svn.automattic.com/wordpress/trunk@14590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-12 21:23:29 +00:00
nacin e15c230ffc Unset capabilities property when we're done. see #13358.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-12 21:17:38 +00:00
nacin 70f36f6c41 More typos. see #13358.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-12 21:03:33 +00:00
nacin 1cb8b7d994 Fix typos. see #13358.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-12 20:57:47 +00:00
ryan ecb2ff033a Pass menu id instead of name. Allows menus with commas in the name. Props filosofo. fixes #13368
git-svn-id: http://svn.automattic.com/wordpress/trunk@14586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-12 20:47:08 +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 b2d3b7efa2 Use correct cap check. see #13358.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-12 19:39:30 +00:00
nacin 3033d58856 Blue scheme for nav menu admin UI. props kpdesign, duck_. fixes #13190.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-12 19:31:11 +00:00
nacin c779fdccf5 Don't nest p tag inside the opening table tag in the new right now box. fixes IE display, and validation. fixes #12202, props ocean90.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-12 19:29:35 +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
nacin 0961da9244 Whitespace and standards in get_userdata. fixes #13317.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14579 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-12 18:59:03 +00:00
ryan 01955d3402 Bumpity bump bump
git-svn-id: http://svn.automattic.com/wordpress/trunk@14576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-12 15:24:31 +00:00
nacin 76c50d8fab Allow for multiple classes and XFN relationships in menu items.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14574 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-11 23:58:26 +00:00
ryan 4437612d46 Setup user globals for user id 0. Props mdawaffe. fixes #13362
git-svn-id: http://svn.automattic.com/wordpress/trunk@14573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-11 23:02:40 +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
nacin 918d0832bb Bump the version alot.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-11 18:34:20 +00:00
nacin b0eb3033ba Remove apparent debug cruft committed in [14401]. fixes #13355
git-svn-id: http://svn.automattic.com/wordpress/trunk@14565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-11 18:28:12 +00:00
ryan b2150816f8 Don't update meta data when the new value matches the old value. fixes #13350
git-svn-id: http://svn.automattic.com/wordpress/trunk@14564 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-11 17:35:07 +00:00
ryan 98b2e56753 Don't order term count queries.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-11 16:50:25 +00:00
ryan c7f520240c Don't set/get tags or categories for post types that do not support them. fixes #13346
git-svn-id: http://svn.automattic.com/wordpress/trunk@14561 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-11 16:28:00 +00:00
ryan 02058305b5 Don't prime menu item cache if a persistent cache is being used. Prime the menu item cache only on the first call to wp_get_nav_menu_items(). Avoids unneeded queries when wp_get_nav_menu_items() is called repeatedly. see #12734
git-svn-id: http://svn.automattic.com/wordpress/trunk@14560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-11 15:55:17 +00:00
ryan 2b930efb74 Unset some vars when done with them to reduce peak memory usage. see #12734
git-svn-id: http://svn.automattic.com/wordpress/trunk@14559 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-11 14:39:00 +00:00
ryan a491596163 No need to setup the nav menu items again. wp_get_nav_menu_items() handles it. see #12734
git-svn-id: http://svn.automattic.com/wordpress/trunk@14558 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-11 14:25:10 +00:00
ryan 69d0ec946e Reduce number of queries in wp_get_nav_menu_items() by fetching posts and terms with batch queries. see #12734
git-svn-id: http://svn.automattic.com/wordpress/trunk@14557 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-11 14:21:03 +00:00
ryan 5c48b8b015 Force reauth when auth_redirect() redirects to login. see #12142
git-svn-id: http://svn.automattic.com/wordpress/trunk@14556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-11 13:44:40 +00:00
westi 4293dc03db Kick the version up some more.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14550 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-10 21:13:35 +00:00
nacin 4e6574f0ac Revert patch for expecting unslashed data in the metadata API. Had snuck in with [14546]. see #12416.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14547 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-10 20:51:58 +00:00
nacin d91623d3d0 Fix double-tabbing in get_dropins.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-10 20:41:14 +00:00
nacin 021bb7d9cc Use correct field name in a query in do_enclose(). fixes #12074, mtdewvirus.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14539 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-10 09:02:15 +00:00
nacin a03dfef3fd Fix typos in phpdoc for comment_form(). props demetris, fixes #10910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-10 08:47:13 +00:00
nacin e88d9914de Remove unused global var. props filosofo, fixes #13316.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-10 06:06:37 +00:00
nacin 8bd2d0505b Some sortable improvements in the nav menu UI. props koopersmith, see #13220.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-10 04:51:57 +00:00
ryan 0c99110a58 Don't call wp_get_nav_menu_items() twice.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14529 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-10 01:11:04 +00:00
ryan 66502fba1a Allow turning off object_term and postmeta cache updates. Turn off object_term updates in the wp_get_nav_menu_items() get_posts() query to avoid useless taxonomy query.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-10 00:58:39 +00:00
nacin 616bc49e04 Remove codepress dir. see #13307.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14527 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-09 22:53:25 +00:00
westi 75482afd7e Bump Bump Bump.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-09 20:54:12 +00:00
markjaquith d78b3c9f92 Omit extraneous argument. props coffee2code. fixes #10057
git-svn-id: http://svn.automattic.com/wordpress/trunk@14522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-09 07:22:10 +00:00
nacin 2eab801eec Simplify is_post_type and is_post_type_hierarchical. Make them work like their taxonomy counterparts. see #12588.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-08 22:10:28 +00:00
nacin 444f8cc6c4 Allow menu items to be dropped on a parent item in addition to just being dragged to the right. props koopersmith, see #13220.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-08 21:56:53 +00:00
westi 3d610ad782 Bumpity
git-svn-id: http://svn.automattic.com/wordpress/trunk@14519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-08 21:16:17 +00:00
nacin 4deb7b8b48 Don't use WP_SITEURL and WP_HOME in multisite. fixes #13191.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14517 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-08 19:31:42 +00:00
wpmuguru 54222465f0 consistency & simplicity in get_option(), see #12140
git-svn-id: http://svn.automattic.com/wordpress/trunk@14515 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-08 18:05:16 +00:00
wpmuguru d1a55c286d add upload dir support to switch to blog, props ocean90, see #11998
git-svn-id: http://svn.automattic.com/wordpress/trunk@14510 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-07 22:50:05 +00:00
westi 26a15c00c3 I like alot of version numbers.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-07 21:07:19 +00:00
westi 5ac646d37d Restore the strtotime(). See #9285.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-07 20:57:23 +00:00
nacin 2bf6d14767 Allow duplicate emails (generally empty) if WP_IMPORTING to restore 2.9 behavior. props blepoxp, yoavf. fixes #13130. see r12778.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14504 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-07 20:35:04 +00:00
westi 73a3f58148 Don't cache option values while installing. See #12140.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14502 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-07 18:32:20 +00:00
nacin 8d7445c3e8 Fix start of week and SQL WEEK handling. props mdawaffe, fixes #10397.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14499 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-07 05:01:29 +00:00
nacin 1c05c2f6e2 Fix to is_post_type. props scribu, fixes #12588.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14498 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-07 04:57:23 +00:00