Changeset 3661
- Timestamp:
- 01/05/2011 10:27:07 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r3641 r3661 547 547 548 548 if ( $usernames = bp_activity_find_mentions( strip_tags( $activity->content ) ) ) { 549 include_once( ABSPATH . WPINC . '/registration.php');549 bp_core_maybe_include_user_registration_file(); 550 550 551 551 foreach( (array)$usernames as $username ) { -
trunk/bp-activity/bp-activity-filters.php
r3592 r3661 114 114 */ 115 115 function bp_activity_at_name_filter( $content ) { 116 include_once( ABSPATH . WPINC . '/registration.php');116 bp_core_maybe_include_user_registration_file(); 117 117 118 118 $usernames = bp_activity_find_mentions( $content ); -
trunk/bp-blogs/bp-blogs-templatetags.php
r3635 r3661 326 326 global $bp; 327 327 328 require_once( ABSPATH . WPINC . '/registration.php');328 bp_core_maybe_include_user_registration_file(); 329 329 330 330 if ( isset($_POST['submit']) ) { -
trunk/bp-core.php
r3643 r3661 283 283 284 284 return apply_filters( 'bp_core_get_page_names', $pages ); 285 } 286 287 /** 288 * If we're not on WordPress 3.1+, then include the file containing the user registration methods. 289 * 290 * @global float $wp_version WordPress version number 291 * @since 1.3 292 */ 293 function bp_core_maybe_include_user_registration_file() { 294 global $wp_version; 295 296 if ( $wp_version >= 3.1 ) 297 return; 298 299 require_once( ABSPATH . WPINC . '/registration.php' ); 285 300 } 286 301 -
trunk/bp-core/bp-core-settings.php
r3620 r3661 52 52 check_admin_referer('bp_settings_general'); 53 53 54 require_once( ABSPATH . WPINC . '/registration.php');54 bp_core_maybe_include_user_registration_file(); 55 55 56 56 // Form has been submitted and nonce checks out, lets do it. -
trunk/bp-core/bp-core-signup.php
r3637 r3661 36 36 check_admin_referer( 'bp_new_signup' ); 37 37 38 require_once( ABSPATH . WPINC . '/registration.php');38 bp_core_maybe_include_user_registration_file(); 39 39 40 40 /* Check the base account details for problems */ … … 218 218 if ( isset( $_GET['key'] ) ) { 219 219 220 require_once( ABSPATH . WPINC . '/registration.php');220 bp_core_maybe_include_user_registration_file(); 221 221 222 222 /* Activate the signup */
Note: See TracChangeset
for help on using the changeset viewer.