Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/10/2012 06:50:12 AM (14 years ago)
Author:
johnjamesjacoby
Message:

See #4761:

  • More Credits changes...
  • Update contributor avatars and metadata.
  • Add update/activate redirection helpers.
  • Code improvements to updater.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-functions.php

    r6558 r6579  
    2626         *
    2727         * @since BuddyPress (1.6)
    28          * @global BuddyPress $bp
    2928         * @return string The BuddyPress version
    3029         */
    3130        function bp_get_version() {
    32                 global $bp;
    33                 return $bp->version;
     31                return buddypress()->version;
    3432        }
    3533
     
    4745         *
    4846         * @since BuddyPress (1.6)
    49          * @global BuddyPress $bp
    5047         * @return string The BuddyPress version
    5148         */
    5249        function bp_get_db_version() {
    53                 global $bp;
    54                 return $bp->db_version;
     50                return buddypress()->db_version;
    5551        }
    5652
     
    6864         *
    6965         * @since BuddyPress (1.6)
    70          * @global BuddyPress $bp
    7166         * @return string The BuddyPress version direct from the database
    7267         */
    7368        function bp_get_db_version_raw() {
    74                 global $bp;
    75 
    76                 $retval = 0;
    77                 if ( !empty( $bp->db_version_raw ) )
    78                         $retval = $bp->db_version_raw;
    79 
    80                 return $retval;
     69                $bp     = buddypress();
     70                return !empty( $bp->db_version_raw ) ? $bp->db_version_raw : 0;
    8171        }
    8272
Note: See TracChangeset for help on using the changeset viewer.