Changeset 9471 for trunk/src/bp-members/bp-members-template.php
- Timestamp:
- 02/10/2015 02:49:16 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-members/bp-members-template.php (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-template.php
r9455 r9471 1298 1298 */ 1299 1299 function bp_get_loggedin_user_nav() { 1300 global $bp;1300 $bp = buddypress(); 1301 1301 1302 1302 // Loop through each navigation item … … 1340 1340 */ 1341 1341 function bp_get_displayed_user_nav() { 1342 global $bp;1342 $bp = buddypress(); 1343 1343 1344 1344 foreach ( (array) $bp->bp_nav as $user_nav_item ) { … … 1484 1484 */ 1485 1485 function bp_get_displayed_user_email() { 1486 global $bp;1486 $bp = buddypress(); 1487 1487 1488 1488 // If displayed user exists, return email address … … 1646 1646 */ 1647 1647 function bp_displayed_user_domain() { 1648 global $bp;1648 $bp = buddypress(); 1649 1649 1650 1650 /** … … 1664 1664 */ 1665 1665 function bp_loggedin_user_domain() { 1666 global $bp;1666 $bp = buddypress(); 1667 1667 1668 1668 /** … … 1688 1688 */ 1689 1689 function bp_get_displayed_user_fullname() { 1690 global $bp;1690 $bp = buddypress(); 1691 1691 1692 1692 /** … … 1718 1718 */ 1719 1719 function bp_get_loggedin_user_fullname() { 1720 global $bp;1720 $bp = buddypress(); 1721 1721 1722 1722 /** … … 1742 1742 */ 1743 1743 function bp_get_displayed_user_username() { 1744 global $bp;1744 $bp = buddypress(); 1745 1745 1746 1746 if ( bp_displayed_user_id() ) { … … 1772 1772 */ 1773 1773 function bp_get_loggedin_user_username() { 1774 global $bp;1774 $bp = buddypress(); 1775 1775 1776 1776 if ( bp_loggedin_user_id() ) { … … 2096 2096 */ 2097 2097 function bp_get_signup_avatar_dir_value() { 2098 global $bp;2098 $bp = buddypress(); 2099 2099 2100 2100 // Check if signup_avatar_dir is passed … … 2132 2132 */ 2133 2133 function bp_get_current_signup_step() { 2134 global $bp; 2135 2136 return $bp->signup->step; 2134 return buddypress()->signup->step; 2137 2135 } 2138 2136 … … 2303 2301 */ 2304 2302 function bp_get_members_component_link( $component, $action = '', $query_args = '', $nonce = false ) { 2305 global $bp;2306 2303 2307 2304 // Must be displayed user 2308 2305 if ( !bp_displayed_user_id() ) 2309 2306 return; 2307 2308 $bp = buddypress(); 2310 2309 2311 2310 // Append $action to $url if there is no $type
Note: See TracChangeset
for help on using the changeset viewer.