Skip to:
Content

BuddyPress.org

Changeset 9503


Ignore:
Timestamp:
02/17/2015 11:36:05 PM (5 years ago)
Author:
djpaul
Message:

Rename component admin files to avoid confusion with non-admin files sharing the same name.

This rename de-duplicates the file names and make the context they're loaded in clearer.
This is a change for developer convenience. e.g. some IDEs will offer a shortcut to opening the files by name, but is very confusing when two identically-named files are listed in the results with, usually, no quick way of disambiguating them.

Fixes #6051

Location:
trunk/src
Files:
3 edited
8 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-components.php

    r9496 r9503  
    248248
    249249        // Save settings and upgrade schema
    250         require_once( $bp->plugin_dir . '/bp-core/admin/bp-core-schema.php' );
     250        require_once( $bp->plugin_dir . '/bp-core/admin/bp-core-admin-schema.php' );
    251251
    252252        $submitted = stripslashes_deep( $_POST['bp_components'] );
  • trunk/src/bp-core/admin/bp-core-admin-schema.php

    r9496 r9503  
    455455
    456456    // Signups is not there and we need it so let's create it
    457     require_once( buddypress()->plugin_dir . '/bp-core/admin/bp-core-schema.php' );
     457    require_once( buddypress()->plugin_dir . '/bp-core/admin/bp-core-admin-schema.php' );
    458458    require_once( ABSPATH                  . 'wp-admin/includes/upgrade.php'     );
    459459
  • trunk/src/bp-core/bp-core-admin.php

    r9455 r9503  
    117117     */
    118118    private function includes() {
    119         require( $this->admin_dir . 'bp-core-actions.php'    );
    120         require( $this->admin_dir . 'bp-core-settings.php'   );
    121         require( $this->admin_dir . 'bp-core-functions.php'  );
    122         require( $this->admin_dir . 'bp-core-components.php' );
    123         require( $this->admin_dir . 'bp-core-slugs.php'      );
    124         require( $this->admin_dir . 'bp-core-tools.php'      );
     119        require( $this->admin_dir . 'bp-core-admin-actions.php'    );
     120        require( $this->admin_dir . 'bp-core-admin-settings.php'   );
     121        require( $this->admin_dir . 'bp-core-admin-functions.php'  );
     122        require( $this->admin_dir . 'bp-core-admin-components.php' );
     123        require( $this->admin_dir . 'bp-core-admin-slugs.php'      );
     124        require( $this->admin_dir . 'bp-core-admin-tools.php'      );
    125125    }
    126126
  • trunk/src/bp-core/bp-core-update.php

    r9351 r9503  
    196196    ) );
    197197
    198     require_once( buddypress()->plugin_dir . '/bp-core/admin/bp-core-schema.php' );
     198    require_once( buddypress()->plugin_dir . '/bp-core/admin/bp-core-admin-schema.php' );
    199199
    200200    // Install BP schema and activate only Activity and XProfile
  • trunk/src/bp-members/bp-members-admin.php

    r9397 r9503  
    13511351        if ( ! empty( $required ) ) {
    13521352            require_once( ABSPATH . 'wp-admin/includes/class-wp-' . $required . '-list-table.php' );
    1353             require_once( buddypress()->members->admin->admin_dir . 'bp-members-classes.php'    );
     1353            require_once( buddypress()->members->admin->admin_dir . 'admin/bp-members-admin-classes.php' );
    13541354        }
    13551355
Note: See TracChangeset for help on using the changeset viewer.