Changeset 5481
- Timestamp:
- 12/10/2011 05:43:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/bp-core/bp-core-wpabstraction.php
r5159 r5481 12 12 // Exit if accessed directly 13 13 if ( !defined( 'ABSPATH' ) ) exit; 14 15 /** 16 * Parso the WordPress core version number into the major release 17 * 18 * @since BuddyPress (1.5.2) 19 * @global string $wp_version 20 * @return string 21 */ 22 function bp_get_major_wp_version() { 23 global $wp_version; 24 25 return substr( $wp_version, 0, ( strpos( $wp_version, '.' ) + 2 ) ); 26 } 14 27 15 28 /**
Note: See TracChangeset
for help on using the changeset viewer.