Plugin Directory

Changeset 160668


Ignore:
Timestamp:
10/05/2009 12:00:07 PM (17 years ago)
Author:
talk2manoj
Message:

Fixes made for BuddyPress 1.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bppicture-album/trunk/bp-album.php

    r159728 r160668  
    33Plugin Name: bpPicture Album
    44Description: You can upload pictures to your album and post wire messages on pictures.
    5 Version: 0.1
     5Version: 0.1.1
    66Requires at least: WPMU 2.7.1, BuddyPress 1
    77Tested up to: WPMU 2.7.1, BuddyPress 1
     
    136136    global $bp;
    137137
    138         bp_core_add_nav_item(
    139         __( 'Album', 'bp-album' ), /* The display name */
    140         $bp->album->slug /* The slug */
    141         );
    142 
    143         /* Set a specific sub nav item as the default when the top level item is clicked */
    144         bp_core_add_nav_default(
    145             $bp->album->slug, /* The slug of the parent nav item */
    146             'bp_album_picture', /* The function to run when clicked */
    147             'picture' /* The slug of the sub nav item to make default */
    148         );
     138         bp_core_new_nav_item(array(
     139                'name'=> __( 'Album', 'bp-album' ),
     140                'slug'=> $bp->album->slug,
     141                'screen_function'=>'bp_album_picture',
     142                'default_subnav_slug'=>'picture'
     143            ));
    149144
    150145        $album_link = $bp->loggedin_user->domain . $bp->album->slug . '/';
Note: See TracChangeset for help on using the changeset viewer.