Plugin Directory

Changeset 1159483


Ignore:
Timestamp:
05/13/2015 08:44:16 AM (11 years ago)
Author:
tomi33
Message:

Only deal with pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tomi-menu/trunk/tomi-menu.php

    r1159434 r1159483  
    3535        $post = get_post($post_id);
    3636
    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 function
     37        if ($post->post_type != 'page') {
     38            return; //Only deal with pages
    3939        }
    4040
Note: See TracChangeset for help on using the changeset viewer.