Plugin Directory

Changeset 206683


Ignore:
Timestamp:
02/16/2010 08:08:46 PM (16 years ago)
Author:
zeeg
Message:

Attempt to solve permalink issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lifestream/trunk/inc/core.php

    r206671 r206683  
    548548        add_action('template_redirect', array($this, 'template_redirect'));
    549549       
    550         register_post_type('lsevent', array('public' => false));
     550        register_post_type('lsevent', array(
     551            'label' => $this->__('Lifestream Event'),
     552            '_show' => true,
     553            'public' => false,
     554            'capability_type' => 'post'
     555        ));
    551556       
    552557        register_activation_hook(LIFESTREAM_PLUGIN_FILE, array(&$this, 'activate'));
     
    676681        if (!$posts)
    677682        {
    678             $posts = array(get_post($_GET['p'], OBJECT));
     683            $posts = array(get_post($wp_query->query_vars['p'], OBJECT));
    679684            $post = $posts[0];
    680685            $wp_query->queried_object = $posts[0];
Note: See TracChangeset for help on using the changeset viewer.