Skip to:
Content

BuddyPress.org

Changeset 1270 for trunk/bp-blogs.php


Ignore:
Timestamp:
03/27/2009 10:27:30 AM (16 years ago)
Author:
apeatling
Message:

Changing filters on constants to if ( !is_defined ) calls. This makes it easier to change values as you can just add new definitions to your wp-config.php file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs.php

    r1250 r1270  
    1515define ( 'BP_BLOGS_DB_VERSION', '937' );
    1616
    17 define ( 'BP_BLOGS_SLUG', apply_filters( 'bp_blogs_slug', 'blogs' ) );
    18 
    19 /* These will be moved into admin configurable settings */
    20 define ( 'TOTAL_RECORDED_POSTS', 150 );
    21 define ( 'TOTAL_RECORDED_COMMENTS', 500 );
     17/* Define the slug for the component */
     18if ( !defined( 'BP_BLOGS_SLUG' ) )
     19    define ( 'BP_BLOGS_SLUG', 'blogs' );
     20
     21/* Define the total number of posts to keep track of for each user. */
     22if ( !defined( 'TOTAL_RECORDED_POSTS' ) )
     23    define ( 'TOTAL_RECORDED_POSTS', 150 );
     24
     25/* Define the total number of comments to keep track of for each user. */   
     26if ( !defined( 'TOTAL_RECORDED_COMMENTS' ) )   
     27    define ( 'TOTAL_RECORDED_COMMENTS', 500 );
    2228
    2329require ( 'bp-blogs/bp-blogs-classes.php' );
Note: See TracChangeset for help on using the changeset viewer.