Andrew Nacin
fb4e38b0e7
Pinking shears.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15843 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-19 07:48:22 +00:00
scribu
b3bcb5f77e
Remove redundant call to function_exists() in wp_nav_menu(). Fixes #15094
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15774 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-11 13:21:08 +00:00
Andrew Nacin
2657fa5a5b
Make it explicit that you can set fallback_cb to false in wp_nav_menu.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15772 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-11 03:16:45 +00:00
Mark Jaquith
b98d713f62
When doing current page highlighting logic, apply untrailingslashit() to everything so that slash additions or omissions still match. fixes #14208 . props filosofo
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15584 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 04:17:37 +00:00
Ryan Boren
9b99bf5f5f
Fix typo in [15544]
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15545 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-27 16:53:26 +00:00
Nikolay Bachiyski
33cd9f11dd
Make menus manipulation easier for plugin developers
...
* Add a wp_nav_menu_objects filter, which gets a sorted list of all menu node objects in the currently rendered menu
* Add current, current_item_ancestor and current_item_parent boolean member variables to each menu node object, which are true when the item has the current-menu-item, current-menu-ancestor or current-menu-parent CSS class respectively
git-svn-id: https://develop.svn.wordpress.org/trunk@15544 602fd350-edb4-49c9-b593-d223f7449a82
2010-08-27 16:13:39 +00:00
Andrew Nacin
0e2a53e8c9
Prevent the same menu item from receiving duplicate IDs if the menu is used twice. All menu items now get a class with their post ID; only the first item now gets an ID. fixes #13976 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15407 602fd350-edb4-49c9-b593-d223f7449a82
2010-07-13 21:30:59 +00:00
Andrew Nacin
8a0c54e243
Fix typo in php comment. props Utkarsh, fixes #14072 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15325 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-25 06:26:40 +00:00
Ryan Boren
e8b8d9773a
Fix current page detection for home when index.php is in the requested URL. Props filosofo. fixes #13977 for 3.1
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15320 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-24 17:39:29 +00:00
Andrew Nacin
c118ae7ec8
Assign menu-item-home also when menu item isn't current. props filosofo, see #14053 for trunk.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15302 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-22 22:05:43 +00:00
Ryan Boren
ab9c5796b3
Remove trailing whites
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15259 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-14 23:39:35 +00:00
Ryan Boren
1a56928cf9
Menu ancestor fixes. Props filosofo. fixes #12812
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15257 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-14 21:19:55 +00:00
Ryan Boren
82be9621ec
Trim trailing whitespace.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15235 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 20:19:35 +00:00
Ron Rennick
f99bbae9b2
add ancestor classes for taxonomy objects, props filosofo, fixes #13831
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15221 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-11 16:00:29 +00:00
Ryan Boren
64eb8f7159
Allow assigning an empty menu to a location. fixes #13787
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15184 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-09 22:05:27 +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
7128d1984b
Add menu_id to wp_nav_menu() and move container_id to the container. Set the container arg to false to not use a container. fixes #13669
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15113 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 17:04:07 +00:00
Ryan Boren
88f326d1c8
Consolidate nav menu class assignments. Props filosofo. fixes #13664
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15105 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 13:48:26 +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
b19e242aa5
Remove vestigial 'context' code for wp_nav_menu. This was used when we used to use the same function as a theme template tag and admin template function (now we don't.) fixes #13656 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15075 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-31 14:54:50 +00:00
Ryan Boren
aa561cd06c
Unique menu container ids. Props filosofo. fixes #13597
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15034 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-28 16:32:57 +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
Andrew Nacin
f5f97a46d3
Always pass post ID to the_title filter. props dndrnkrd, fixes #13558
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14964 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 21:30:00 +00:00
Ryan Boren
22cb105416
No default value for pass by ref. Props filosofo. fixes #13553
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14945 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 16:25:29 +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
f333c16f10
More menu class back compat. Props filosofo. fixes #13543
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14942 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 14:18:46 +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
46d962dfb8
Handle current menu item classes for post pages. props filosofo, fixes #13543 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14923 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 02:38:31 +00:00
Ryan Boren
7ba92c31a4
Menu notice and stlying fixes. Props filosofo. fixes #12812
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14905 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 21:44:34 +00:00
Ryan Boren
b18836e3f9
Back compat menu classes. see #12812 #13379
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14900 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 18:54:42 +00:00
Ryan Boren
ca7b6498d7
Classes for posts and terms in the menus. see #13379
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14891 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 16:51:09 +00:00
Ryan Boren
7cafd15b07
Add ancestor classes. Props filosofo. see #12812
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14881 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 14:25:06 +00:00
Ryan Boren
ae2d4eba15
Add parent classes to nav menu. Props filosofo. see #12812
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14876 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 13:30:10 +00:00
Andrew Nacin
ec0823ce3e
Proper checks for current-menu-item. props duck_, fixes #13409 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14824 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-23 22:01:08 +00:00
Ryan Boren
6d183a8505
Don't look for a fallback menu when a specific location is requested. Props tinkerpriest. see #13378
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14793 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-21 20:28:11 +00:00
Andrew Nacin
e005e28966
Inline docs for menu location functions. props jorbin, see #13378 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14721 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-18 05:59:25 +00:00
Andrew Nacin
317abe4473
Remove p tag from allowed nav menu container tags. Cannot validly contain block level elements. props Jorbin, fixes #13349 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14666 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-15 15:05:57 +00:00
Andrew Nacin
4db10bf0d7
First pass on 'Theme Locations' for navigation menus. Themes need to specify a location when calling wp_nav_menu and register locations in functions.php. Users then map menus to locations in the nav menu admin. Subject to review. see #13378 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14620 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-14 06:20:30 +00:00
Ron Rennick
05b0578c06
add menu slots/theme_menus, props ryan, see #13378
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14611 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 22:14:54 +00:00
Andrew Nacin
6e9e34fb52
More wp_navMore inline doc clarifications for wp_nav_menu. fixes #13370 , props jorbin.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14605 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 19:07:08 +00:00
Andrew Nacin
96d6225aa1
More inline doc clarifications for wp_nav_menu. fixes #13370 , props jorbin.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14604 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 18:47:35 +00:00
Ryan Boren
e628d300b0
s/wp_get_nav_menu_item/walker_nav_menu_start_el/ to be more specific. Pass all start_el() args to the filter. Props tomtomp. fixes #13366
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14600 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 16:44:12 +00:00
Andrew Nacin
39edf881e0
Allow wp_nav_menu_items filters to run on the backend as well. props NathanRice, fixes #13371 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14592 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 03:50:26 +00:00
Andrew Nacin
a523060469
Nav menu inline doc fixes. props NathanRice, fixes #13370 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14591 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-13 03:46:35 +00:00
Nikolay Bachiyski
ad3881470e
I18n for custom post type labels. Props demetris, dimadin. Fixes #12968
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14571 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 19:52:50 +00:00
Ryan Boren
b726ce95dc
Unset some vars when done with them to reduce peak memory usage. see #12734
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14559 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 14:39:00 +00:00
Ryan Boren
c0e02a6677
No need to setup the nav menu items again. wp_get_nav_menu_items() handles it. see #12734
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14558 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-11 14:25:10 +00:00
Ryan Boren
581779a30d
Don't call wp_get_nav_menu_items() twice.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14529 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-10 01:11:04 +00:00
Andrew Nacin
465cce3e6a
Revert [14434] et al. Going back to checkboxes in the nav menus, holding drag-drop for future release. see #13247 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14471 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-06 14:09:10 +00:00
Andrew Nacin
1ec3a58cd1
Check custom links, including a home link, against the current URL to see if we should add current-menu-item. props ptahdunbar, fixes #13213 , see #13220 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14457 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-04 22:01:56 +00:00