Skip to:
Content

BuddyPress.org

Ticket #8892: #8892.patch

File #8892.patch, 1.7 KB (added by kajalgohel, 18 months ago)

Removed unused variable from the few files

  • src/bp-activity/bp-activity-template.php

     
    31903190 */
    31913191function bp_activity_can_comment() {
    31923192        global $activities_template;
    3193         $bp = buddypress();
    31943193
    31953194        // Determine ability to comment based on activity type name.
    31963195        $activity_type = bp_get_activity_type();
  • src/bp-core/bp-core-buddybar.php

     
    119119 * @return false|array Returns false on failure, new nav item on success.
    120120 */
    121121function bp_core_create_nav_link( $args = '', $component = 'members' ) {
    122         $bp = buddypress();
    123122
    124123        $defaults = array(
    125124                'component_id'            => '',    // The component ID registering this nav item.
     
    538537 * @return false|array Returns false on failure, new BP_Core_Nav_Item instance on success.
    539538 */
    540539function bp_core_create_subnav_link( $args = '', $component = 'members' ) {
    541         $bp = buddypress();
    542540
    543541        $r = bp_parse_args(
    544542                $args,
  • src/bp-core/classes/class-bp-core-bp-nav-backcompat.php

     
    216216         * @return bool|array
    217217         */
    218218        protected function get_nav( $offset ) {
    219                 $bp = buddypress();
    220219
    221220                $component_nav = $this->get_component_nav( $offset );
    222221                $primary_nav   = $component_nav->get_primary( array( 'slug' => $offset ), false );