Changeset 6579 for trunk/bp-core/bp-core-functions.php
- Timestamp:
- 12/10/2012 06:50:12 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-functions.php
r6558 r6579 26 26 * 27 27 * @since BuddyPress (1.6) 28 * @global BuddyPress $bp29 28 * @return string The BuddyPress version 30 29 */ 31 30 function bp_get_version() { 32 global $bp; 33 return $bp->version; 31 return buddypress()->version; 34 32 } 35 33 … … 47 45 * 48 46 * @since BuddyPress (1.6) 49 * @global BuddyPress $bp50 47 * @return string The BuddyPress version 51 48 */ 52 49 function bp_get_db_version() { 53 global $bp; 54 return $bp->db_version; 50 return buddypress()->db_version; 55 51 } 56 52 … … 68 64 * 69 65 * @since BuddyPress (1.6) 70 * @global BuddyPress $bp71 66 * @return string The BuddyPress version direct from the database 72 67 */ 73 68 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; 81 71 } 82 72
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)