Skip to:
Content

BuddyPress.org

Ticket #8892: 8892.4.patch

File 8892.4.patch, 3.2 KB (added by upadalavipul, 19 months ago)

few more files in found unused variable.

  • 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-block.php

     
    197197                                $this->block = new WP_Error( 'script_registration_error', __( 'The required `editor_script` could not be registered.', 'buddypress' ) );
    198198                        } else {
    199199                                // Register the styles.
    200                                 $registered_styles = array();
    201200
    202201                                foreach ( array( 'editor_style', 'style' ) as $style_handle_key ) {
    203202                                        if ( ! isset( $wp_args[ $style_handle_key ] ) || ! $wp_args[ $style_handle_key ] ) {
  • 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 );
  • src/bp-core/classes/class-bp-invitation-manager.php

     
    169169         * @return bool The result of `run_send_action()`.
    170170         */
    171171        public function send_invitation_by_id( $invitation_id = 0, $args = array() ) {
    172                 $updated = false;
    173172
    174173                $invitation = new BP_Invitation( $invitation_id );
    175174
     
    327326         * @return bool The result of `run_send_action()`.
    328327         */
    329328        public function send_request_notification_by_id( $request_id = 0, $args = array() ) {
    330                 $updated = false;
    331329
    332330                $request = new BP_Invitation( $request_id );
    333331
  • src/bp-core/classes/class-bp-media-extractor.php

     
    519519         */
    520520        protected function extract_embeds( $richtext, $plaintext, $extra_args = array() ) {
    521521                $data   = array( 'has' => array( 'embeds' => 0 ), 'embeds' => array() );
    522                 $embeds = array();
    523522
    524523                if ( ! function_exists( '_wp_oembed_get_object' ) ) {
    525524                        require( ABSPATH . WPINC . '/class-oembed.php' );