Changeset 206683
- Timestamp:
- 02/16/2010 08:08:46 PM (16 years ago)
- File:
-
- 1 edited
-
lifestream/trunk/inc/core.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lifestream/trunk/inc/core.php
r206671 r206683 548 548 add_action('template_redirect', array($this, 'template_redirect')); 549 549 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 )); 551 556 552 557 register_activation_hook(LIFESTREAM_PLUGIN_FILE, array(&$this, 'activate')); … … 676 681 if (!$posts) 677 682 { 678 $posts = array(get_post($ _GET['p'], OBJECT));683 $posts = array(get_post($wp_query->query_vars['p'], OBJECT)); 679 684 $post = $posts[0]; 680 685 $wp_query->queried_object = $posts[0];
Note: See TracChangeset
for help on using the changeset viewer.