Skip to:
Content

bbPress.org

Changeset 6807


Ignore:
Timestamp:
04/23/2018 03:45:36 AM (2 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress: more efficient includes method.

Props r-a-y. Fixes #3193.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/loader.php

    r6777 r6807  
    7575        }
    7676
    77         parent::includes( $includes );
     77        // Require files if they exist
     78        foreach ( $includes as $file ) {
     79            if ( @is_file( $this->path . $file ) ) {
     80                require $this->path . $file;
     81            }
     82        }
     83
     84        /**
     85         * Hook for plugins to include files, if necessary.
     86         *
     87         * @since 2.6.0 bbPress (r3552)
     88         */
     89        do_action( "bp_{$this->id}_includes" );
    7890    }
    7991
Note: See TracChangeset for help on using the changeset viewer.