Commit Graph

103 Commits

Author SHA1 Message Date
scribu 68d5bd05df Optimize menu item creation. Props filosofo. Fixes #14415
git-svn-id: https://develop.svn.wordpress.org/trunk@16096 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-30 00:13:45 +00:00
Mark Jaquith d65cdf4ba8 Expand submit_button() capabilities. Replace all (or almost all) manual HTML instances in WP. props sbressler. see #15064
git-svn-id: https://develop.svn.wordpress.org/trunk@16061 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-28 21:56:43 +00:00
Ryan Boren b92ecce757 Nav menu phpdoc updates. Props Utkarsh. fixes #15125
git-svn-id: https://develop.svn.wordpress.org/trunk@15815 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-15 14:05:33 +00:00
Andrew Nacin 5e37bb785a s/showposts/posts_per_page/
git-svn-id: https://develop.svn.wordpress.org/trunk@15788 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-13 05:25:00 +00:00
Andrew Nacin 85394e795e More curses on PHP 5.0.5. see #13757, fixes #14160. for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15471 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-25 07:35:59 +00:00
Andrew Nacin 09f7a954bf Revert [15219], [15250], some of [15249] for 3.0, revisit in 3.0.1. see #13822.
git-svn-id: https://develop.svn.wordpress.org/trunk@15254 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-14 19:52:30 +00:00
Andrew Nacin b354c95af3 Add admin UI labels for menu items of unpublished posts. props koopersmith, fixes #13822. #stringchange
git-svn-id: https://develop.svn.wordpress.org/trunk@15250 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-14 08:40:52 +00:00
Ryan Boren fc2793bd46 Deprecate is_term, is_taxonomy, is_post_type for *_exists(). Props nacin. fixes #13747
git-svn-id: https://develop.svn.wordpress.org/trunk@15220 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 15:53:41 +00:00
Ron Rennick 9c74b84590 hide unpublished items on frontend nav menus, props filosofo, fixes #13822
git-svn-id: https://develop.svn.wordpress.org/trunk@15219 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 15:34:32 +00:00
Andrew Nacin e8f7f12adf Horizontal scrolling/resizing fixes for nav menu UI. Also some RTL fixes. props koopersmith, see #13525
git-svn-id: https://develop.svn.wordpress.org/trunk@15214 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 05:19:36 +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
Andrew Nacin 5dcf82f22f Don't show an error when the theme supports widgets but not menus. see #13825.
git-svn-id: https://develop.svn.wordpress.org/trunk@15191 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-10 17:37:15 +00:00
Ryan Boren 0922715668 Cut 'em out, move 'em on, trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@15116 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 20:04:07 +00:00
Andrew Nacin dd5d1692b8 Clear nav menu from menu locations on delete. Additional sanity checks. fixes #13690.
git-svn-id: https://develop.svn.wordpress.org/trunk@15100 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 05:10:31 +00:00
Andrew Nacin d5dd6a6aec Move the Walker_Nav_Menu_Checklist class to admin/includes.
git-svn-id: https://develop.svn.wordpress.org/trunk@15077 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-31 15:47:53 +00:00
Andrew Nacin b5f97b05ee Consistent font size for menu instructions.
git-svn-id: https://develop.svn.wordpress.org/trunk@15067 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 21:58:14 +00:00
Andrew Nacin 45057df1ae Full no-JS and IE support for [15062]. fixes #13615.
git-svn-id: https://develop.svn.wordpress.org/trunk@15063 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 20:33:48 +00:00
Andrew Nacin 60b96042f2 Use show_in_nav_menus for attachments. Also add it to register_taxonomy for consistency and have it default to public, not show_ui, like post types. see #13621.
git-svn-id: https://develop.svn.wordpress.org/trunk@15056 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-29 16:46:46 +00:00
Andrew Nacin 51cc204001 Sanity check menu item parents and fix HTML issues. props filosofo, fixes #13600.
git-svn-id: https://develop.svn.wordpress.org/trunk@15049 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 23:04:00 +00:00
Andrew Nacin 52ec03b947 Don't show (pending) in JS mode for nav menus UI. props filosofo, fixes #13604.
git-svn-id: https://develop.svn.wordpress.org/trunk@15047 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 20:41:39 +00:00
Andrew Nacin 69c7b18960 Make nav menu meta box tab ordering consistent across post types and taxonomies. see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@15045 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 20:36:57 +00:00
Andrew Nacin d7607a4cdd Menu touchups. see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@15010 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 22:45:52 +00:00
Andrew Nacin 29ccf1ec31 New pending menu item behavior. props filosofo, see #13579.
git-svn-id: https://develop.svn.wordpress.org/trunk@15008 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 22:22:09 +00:00
Andrew Nacin 7ed6bc6ccb Remove some dead code. props ocean90, see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@15007 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 22:17:58 +00:00
Andrew Nacin 6a314caceb RTL string fix. see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@14994 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 14:14:58 +00:00
Andrew Nacin 62d4016045 gettext. see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@14975 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 02:51:09 +00:00
Andrew Nacin 32565eeeb2 Implement the Cancel menu item link for no JS. props ocean90, see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@14974 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 02:49:11 +00:00
Andrew Nacin 9b4a85cdaf Move the "Add Home Link" functionality to a checkbox on the View All tab of the Pages metabox. Also makes it work non-JS. props filosofo, fixes #13213.
git-svn-id: https://develop.svn.wordpress.org/trunk@14971 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-27 02:24:33 +00:00
Ryan Boren 6c79e1395d Make classes property for menus an array. Props filosofo. fixes #13551
git-svn-id: https://develop.svn.wordpress.org/trunk@14944 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 15:41:21 +00:00
Ryan Boren 5cceae73e3 Ajaxify pagination requests in menu boxes. Props filosofo. fixes #13204
git-svn-id: https://develop.svn.wordpress.org/trunk@14943 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 14:49:43 +00:00
Ryan Boren aec821c651 Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@14924 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 02:42:15 +00:00
Andrew Nacin 1db01f2c56 Don't hide early nav menu instructions until the menu is no longer empty. props koopersmith, see #13525
git-svn-id: https://develop.svn.wordpress.org/trunk@14917 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 00:41:18 +00:00
Andrew Nacin d617ca0f94 First pass on better UX for menu item save. props koopersmith, see #13525.
git-svn-id: https://develop.svn.wordpress.org/trunk@14852 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 19:50:20 +00:00
Ryan Boren d681342167 Better text for locations box. Props filosofo. fixes #13520 see #13378
git-svn-id: https://develop.svn.wordpress.org/trunk@14846 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 19:27:57 +00:00
Andrew Nacin 6f97d5ccee Styling for menu locations howto text. see #13378.
git-svn-id: https://develop.svn.wordpress.org/trunk@14834 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 11:20:58 +00:00
Andrew Nacin b30c9c252e Some menu string improvements. props JohnONolan. see #13378.
git-svn-id: https://develop.svn.wordpress.org/trunk@14832 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-24 09:26:41 +00:00
Peter Westwood 3581129c1f Don't output empty html wrappers if no page numbers. Fixes #13497 props filosofo.
git-svn-id: https://develop.svn.wordpress.org/trunk@14813 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-23 07:43:07 +00:00
Andrew Nacin 0c09db7062 Most Recent tab for nav menu meta boxes for post types. props filosofo, see #13217.
git-svn-id: https://develop.svn.wordpress.org/trunk@14797 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 23:32:45 +00:00
Ryan Boren 3a4313186a Some explanatory text for the theme locations box. see #13378
git-svn-id: https://develop.svn.wordpress.org/trunk@14767 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-20 21:25:25 +00:00
Ryan Boren ac71984568 Menu styling fixes for IE. Props filosofo, ocean90. fixes #13388 #13348
git-svn-id: https://develop.svn.wordpress.org/trunk@14761 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-20 19:33:57 +00:00
Ryan Boren e25c7e1935 Order pages in menu box by menu_order, title. Props filosofo. see #13329
git-svn-id: https://develop.svn.wordpress.org/trunk@14744 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-19 14:34:29 +00:00
Andrew Nacin dcfc4351c2 Rename wp_save_nav_menu_item to wp_save_nav_menu_items. Though it could handle one item, it expects a mess of post data containing an array of menu items. see #13447.
git-svn-id: https://develop.svn.wordpress.org/trunk@14738 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-19 05:59:43 +00:00
Andrew Nacin 560acd7b63 Save menu locations meta box via ajax. see #13378.
git-svn-id: https://develop.svn.wordpress.org/trunk@14715 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-17 23:58:56 +00:00
Andrew Nacin 2839ecfd01 First pass at fixing search for add menu item boxes. props koopersmith, see #13283.
git-svn-id: https://develop.svn.wordpress.org/trunk@14686 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-16 05:39:53 +00:00
Peter Westwood a441108f91 Fix the column headers title override to use a special name rather than one we use elsewhere.
git-svn-id: https://develop.svn.wordpress.org/trunk@14675 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 20:57:17 +00:00
Andrew Nacin 8df4668ce6 Truncate long menu names in the menu locations box. props koopersmith, see #13378.
git-svn-id: https://develop.svn.wordpress.org/trunk@14671 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 20:00:48 +00:00
Ryan Boren 3fe13109a2 Add wp_edit_nav_menu_walker filter for specifying a custom edit nav menu walker. Props filosofo. fixes #13342
git-svn-id: https://develop.svn.wordpress.org/trunk@14645 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 20:06:50 +00:00
Peter Westwood db0df6a9c0 Try and tidy up the show_screen logic a little.
Implement a better override of the column header.
See #13393.

git-svn-id: https://develop.svn.wordpress.org/trunk@14638 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 16:45:14 +00:00
Andrew Nacin 1a1ae174ba Only show published items of custom post types in nav menu meta boxes. props duck_, fixes #13390.
git-svn-id: https://develop.svn.wordpress.org/trunk@14631 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 13:12:45 +00:00
Andrew Nacin 151f5eb77d Only show Theme Locations meta box if menus exist and if the theme has registered menus. see #13378.
git-svn-id: https://develop.svn.wordpress.org/trunk@14621 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 06:35:57 +00:00