Plugin Directory

Changeset 387753


Ignore:
Timestamp:
05/22/2011 08:07:23 PM (15 years ago)
Author:
kunalb
Message:

Hopefully working

Location:
eventpress/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • eventpress/trunk/controllers/wp.php

    r385034 r387753  
    4343
    4444        //Register the function to show the event metadata on a single page
    45         add_filter( 'the_content', Array( $ep_views['template'], 'event_metadata' ) );
     45        if (defined('EP_BP') && EP_BP)
     46            add_filter( 'the_content', Array( $ep_views['template'], 'event_metadata' ) );
    4647
    4748        //Register function for getting the right template part
    4849        add_action( 'get_template_part_event_details', Array( &$this, 'register_event_part_template' ), 10, 2 );
    49         add_action( 'get_template_part_events_loop', Array( &$this, 'register_event_loop' ), 10, 2 );
    5050
    5151        //Modify the messages for events and registration.
     
    7272            add_action( 'init', array( 'ep_admin_view', 'init' ) );
    7373
    74         //Modify the page templates array
     74        //Modify the page templates array /* Deprecated. DROP BY 1.3. */
    7575        add_filter( 'page_template', Array( &$this, 'events_pages' ) );
    7676
     
    374374
    375375        //Give a pretty URL to events. Only for WordPress, as BuddyPress will use a screen.
    376         if ( !defined( 'EP_BP' ) ) {
     376        if ( !defined( 'EP_BP' ) ) { /* Deprecated. DROP BY 1.3. */
    377377            $this->landing_page();
    378378        }
  • eventpress/trunk/readme.txt

    r385034 r387753  
    44Requires at least: WordPress 3.1, BuddyPress 1.2.8
    55Tested up to: 3.1
    6 Stable tag: 0.1.2.4
     6Stable tag: 0.1.2.5
    77
    88Create Events on WordPress and BuddyPress!
Note: See TracChangeset for help on using the changeset viewer.