Changeset 1159483
- Timestamp:
- 05/13/2015 08:44:16 AM (11 years ago)
- File:
-
- 1 edited
-
tomi-menu/trunk/tomi-menu.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tomi-menu/trunk/tomi-menu.php
r1159434 r1159483 35 35 $post = get_post($post_id); 36 36 37 if ($post->post_type == 'nav_menu_item') {38 return; // Bad things happen if you pass a post that is actually a menu into this function37 if ($post->post_type != 'page') { 38 return; //Only deal with pages 39 39 } 40 40
Note: See TracChangeset
for help on using the changeset viewer.