Ticket #8892: #8892.patch
File #8892.patch, 1.7 KB (added by , 18 months ago) |
---|
-
src/bp-activity/bp-activity-template.php
3190 3190 */ 3191 3191 function bp_activity_can_comment() { 3192 3192 global $activities_template; 3193 $bp = buddypress();3194 3193 3195 3194 // Determine ability to comment based on activity type name. 3196 3195 $activity_type = bp_get_activity_type(); -
src/bp-core/bp-core-buddybar.php
119 119 * @return false|array Returns false on failure, new nav item on success. 120 120 */ 121 121 function bp_core_create_nav_link( $args = '', $component = 'members' ) { 122 $bp = buddypress();123 122 124 123 $defaults = array( 125 124 'component_id' => '', // The component ID registering this nav item. … … 538 537 * @return false|array Returns false on failure, new BP_Core_Nav_Item instance on success. 539 538 */ 540 539 function bp_core_create_subnav_link( $args = '', $component = 'members' ) { 541 $bp = buddypress();542 540 543 541 $r = bp_parse_args( 544 542 $args, -
src/bp-core/classes/class-bp-core-bp-nav-backcompat.php
216 216 * @return bool|array 217 217 */ 218 218 protected function get_nav( $offset ) { 219 $bp = buddypress();220 219 221 220 $component_nav = $this->get_component_nav( $offset ); 222 221 $primary_nav = $component_nav->get_primary( array( 'slug' => $offset ), false );